Dynamic content with SlideViewer
Hi, I'm using SlideViewer 1.2 and am having problems using it dynamically. I'm creating a web application that has the SlideViewer in a fixed location in the upper right and need to switch between different sets of photos. It works fine for the first set but when I dynamically modify the <UL> list of images through an Ajax call and reissue the $("#images").slideView() command it stacks a new set of buttons on top of the previous buttons.
I think I need a way to reset SlideViewer and start fresh. You can see what I'm talking about by building a simple SlideViewer and issue the slideView command twice:
$("#myimageset").slideView();
$("#myimageset").slideView();
It will stack two sets of buttons one atop the other.
I'm trying to understand the backend code of SlideViewer to see if I can figure out if there is a variable that I can destroy that will solve the problem and let me create a fresh set of buttons each time slideView() is called. But if anyone has any suggestions I'd appreciate it.
Thanks,
Marlin