Hi Ganeshji, thanks for your reply, in fact i came to the same conclusion... I'm implementing now the jCarousel library, that despite the fact that it is a bit heavy seems to have the tools to insert content at runtime via the .add(itemIndex, innerHTML) function.
Now i'm experiencing other sorts of problems with it, but this is another story.... Thanks anyway! best regards thorfinn On 22 Ago, 00:52, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > hi thorfinn, > > Using the present featureset of jCarouselLite, you will not be able to add > content at run-time once the carousel is initialized. > You have 2 options > 1. To add the "li" elements before u even initialize the carousel > 2. look into jCarousel. Although a bit heavy, it has a host of features that > jCarouselLite does not support. > > Lemme know if you have further questions. > > -GTG > > On 8/21/07, thorfinn <[EMAIL PROTECTED]> wrote: > > > > > Hi jQuery folks, > > > i'm trying to create a page where a new <li> element is to be added to > > an existing carousel. The new element's content is coming from some > > ajax call and it should fit dinamically into the existing carousel > > forcing it to reinitialize (i suppose). > > > Ex. > > ----THIS IS THE HTML MARKUP OF THE ORIGINAL CAROUSEL > > <div id="carousel"> > > <ul id="carouselList"> > > <li>html markup content</li> > > </ul> > > </div> > > > --JCAROUSELLITE JAVASCRIPT INIT CODE > > $("#carousel").jCarouselLite({ > > btnGo: new Array("#historyGo1"), > > visible:1, > > circular:false > > }); > > > ----------------------------------------------------------------------------------------------- > > suppose that on completion of aN ajax request we get some other html > > code, > > then we should be supposed to add it to a new <li> element appended to > > the <ul> this way: > > > $("ul#carouselList").append("<li>"+new html code from ajax+"</li>"); > > > ----------------------------------------------------------------------------------------------------- > > > Now i suppose that i should reinitialize the carousel but it doesent > > seem to work that way! > > > Since i'm getting lots of troubles doing that, i would greatly > > appreciate if anyone can point me to some hints or existing > > documentation... > > > Thanks in advance! > > thorfinn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery (English)" group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~----------~----~----~----~------~----~------~--~---