ajax - jQuery adding elements to slideshow after load event -


i using nivoslider plugin create slideshow effect on page. currently, when page loads, randomly selects 5 images cycle through using php script.

the images used placed inside div so:

<div id="slider"> <img src="image1" /> <img src="image2" /> <img src="image3" /> <img src="image4" /> <img src="image5" /> </div> 

this working ok, load more images via ajax after page has loaded.

i have php script html images can't new images included in cycle.

is there anyway take these new images account?

any advice appreciated.

thanks.

it seems there no easy way reset plugin. tried call nivoslider on updated container, returns (it checks if installed element). bypassing check (by running $('#slider').removedata('nivoslider')) breaks it.

i guess there 2 ways tackle problem. either remove slider container entirely, , rebuild using existing images , new ones, or remove traces of plugin on current container, add images, , rerun plugin. see this post on support forums, suggests how remove plugin container.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -