Open silouanwright opened 13 years ago
Have a look at this and see if it helps https://gist.github.com/1331038
Using server side code to accomplish this is a little too limiting / non modular... I'm using frameworks which allow me to define structure and infinitely override. (Django / ROR). So someone could create a page based on an overarching structure with 1 slideshow, and put 2 / 3 slideshows, who knows. So the application doesn't know how many slideshows are on a page (and besides, they are at different parts of a page so it's even more awkward).
I asked this question like 2 -3 months ago......
What I ended up doing (for anyone who runs into this issue and is looking for guidance), what I'm doing now is I'm selecting 2+ potential carousels on a page, doing a loop with jQuery and initializing bxSlider on each one and setting it to a variable. I'm initializing the paging functions inside the loop (using $(this) and traversal to get to my pagination), and I'm binding click handlers pointing to the variable instantiated inside of that loop). It works, but the traversal I'm having to do is a little messy, and the selectors have to be in a specific area.
@rey-wright Thanks, I was encountering the same issue you were and your solution appears to be the best fit at the moment...
I'm iterating through a wrapped set and applying the slideshow multiple times in a page, all with one set of navigation controls. How am I expected to page the correct one? If it was just a simple method without requiring a variable, I could sniff the active class and just do that one, but I have no idea how I would page whatever individual slideshow I want using this.