updating slider with dynamic content insertion

mehulnchauhan's Avatar

mehulnchauhan

06 Oct, 2012 12:11 PM

Hi,
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 Dmitry Semenov on 06 Oct, 2012 07:11 PM

    Dmitry Semenov's Avatar

    Hi,

    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.

    Dmitry

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

    mehulnchauhan's Avatar

    yes It works.

  3. Dmitry 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

Generic

? 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