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