updating slider with dynamic content insertion

mehulnchauhan's Avatar


06 Oct, 2012 12:11 PM

I have next and previous button which runs my javascript function to load new albums, I am respectively creating HTML structure needed for royal slider with javascript function, please advice me how should I update royal slider with new structure every time html changes.

  1. Support Staff 1 Posted by Dmytro Semenov on 06 Oct, 2012 07:11 PM

    Dmytro Semenov's Avatar


    If you update content completely, it's more efficient to destroy old slider (via sliderInstance.destroy()), add new markup to DOM and and initialize new slider.


  2. 2 Posted by mehulnchauhan on 08 Oct, 2012 07:48 AM

    mehulnchauhan's Avatar

    yes It works.

  3. Dmytro Semenov closed this discussion on 08 Oct, 2012 07:52 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac