Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

how to call javascript function from jsf

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am working on a jsf page in which it contains a part where am going to retrieve the images from
a particluar folder(let us assume the current folder) and pass them to a javascript function to make marquee for those set of
images

so the javascript is called runAdv
and passing the parameters (the name of the images separeted by delimater ',')
runAdv(image1,image2,image3)

I have to keep checking the folder which contains the images for any changes
(if the user adds/deletes images then we have to refresh the marque not
the whole page )

I have used a jax poll which check for any changes in the images .

the problem is that:
how do i call this javascript runAdv if ajax poll return true , as in the first time i have called it when the page
loads.


I really feel that my current approach to deal with this issue is not the right and
the optimum one

please help me to fix this issue and recommand a other solution if there is , i do beleive that there are
some other ideas and solutions for such case.

main.xhtml



myjs.js





 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Any one can give me some tips regarding this issue .....

Thanking you in Advance
 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Any reply for this question , is this issue can be fixed using the jsf components or i have to create custom component ....
 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Please help me to solve this issue , still no reply from any body
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic