autoplay issue with empty container and dynamically loaded slides from JSON.

mark.chitty's Avatar


16 Oct, 2012 05:22 PM

hi there,

I am having an issue getting the autoplay to work as it comes up with an error in the console:

this.currSlide is undefined

I am loading the slides in dynamically from a json feed and so I start with an empty div (#video-gallery):

If I add a single slide to the code then it all appears to work fine. I could just remove this slide using:

sliderInstance.removeSlide( index(0) );

but I wondered if there's a better way?



  1. Support Staff 1 Posted by Dmitry Semenov on 17 Oct, 2012 05:48 AM

    Dmitry Semenov's Avatar


    Initialize slider using slides option and only after you get the content.


  2. 2 Posted by mark.chitty on 17 Oct, 2012 09:22 AM

    mark.chitty's Avatar

    that's great.

    many thanks,


  3. Dmitry Semenov closed this discussion on 18 Oct, 2012 07:06 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