http://tinyurl.com/dar2ld
http://tinyurl.com/cvjkqa http://tinyurl.com/ae56nz On 3/26/09, D A <dali...@gmail.com> wrote: > > > I've implemented the Jquery.Carousel on our site. I'm stumped on how > to load content dynamically, however. > > The demo site: > > http://sorgalla.com/projects/jcarousel/#Dynamic-Content-Loading > > ...shows how to load content into a blank carousel when the page loads. > > We'll have data (LIs) already loaded. I then want to load additional > LIs when a person slides the carousel to the last item currently > loaded. > > I assume that would be done via the 'itemLastInCallback' property. > > This is what I have: > > $("#mycarousel1").jcarousel({ > scroll: 2, > itemLastInCallback: appendItemsToCarousel > }); > > function appendItemsToCarousel(carousel, state){ > alert("Load the data via ajax!"); > }; > > But when the page loads, that alert is triggered, so I'm obviously > doing something wrong. > > Does anyone have an example of jquery.carousel loading additional LIs > only after the last current LI is scrolled to? > > Thanks! > > -DA >