ryrych / rcarousel

yet another jQuery UI carousel
http://ryrych.github.com/rcarousel/
171 stars 48 forks source link

Change HTML-DOM in Slider-Elements #8

Closed Stocky closed 12 years ago

Stocky commented 12 years ago

Hello ryrych,

first of all i want to thank you for this awesome script.

i use ist in a project, where i have to add or remove some images within my HTML-Slide Elements (). When i slide to next Page the content of the HTML-Slide Elements is the same, as when the Page was loaded. I think this is because the Slider-Elements are Saved in data.paths an/or data.pages.

I tried to save the Slide-Elements from the actual HTML-DOM in the _removeOldElements Function into these both arrays, but it didn`t worked.

Do you have an Idea what could be the best way to update and reload the HTML-Slide Elements in runtime?

Greetings from Germany

Stocky

ryrych commented 12 years ago

Hi Stocky.

So, you would like to control DOM after a carousel is initiated, am I right? Could you please, provide me with a demo so that I could figure it out better?

I think that it could be possible to get an array of visible elements to manipulate them.

ryrych commented 12 years ago

Hm, I think that ‘load’ seems to be better name in this case. In the meantime ‘append’ could co-exist with ‘load’ and then, in the future, be call deprecated.

Perhaps this doesn’t sound well but hey, I am also learning. :)

Stocky commented 12 years ago

Hello ryrych,

i fixed the Problem in my Project by .load() the content for the slider items from a PHP Script that connects to my Databse. Everytime i switch pages, i reload the content of the Carousel Items. Probably not the cleanest Solution, but it works. :)

ryrych commented 12 years ago

Glad to hear it! It is fantastic that users are smart enough to work out problems in a way that you haven’t thought of. :) Anyway, I try to fix it in the next version.

Have a good day!