KevinBatdorf / liquidslider

A Responsive jQuery Content Slider
161 stars 63 forks source link

Ajax generated dynamic divs are not included when I initiate liquid slider #123

Closed inyeolsohnn closed 10 years ago

inyeolsohnn commented 10 years ago

Basically I'm trying to add dynamic slides into the liquid slider I have been successful being able to add divs without problem.

screenshot of how it looks before liquidslider is called: image

Element Inspector of pre liquid slider: image

However after activation

the other slides are left out (they don't end up in the right final div)

image

I have initiated liquid slider when document is ready, to make sure divs are all there before the liquid slider is loaded. I did some inspection, and it seems like my dynamically generated div's are not included in the source html(even though they appear in google element inspector). Do you think this is the cause? Can you suggest any work around

inyeolsohnn commented 10 years ago

I have fixed the issue. I do not understand if this is basic javascript behavior

but initially i called 2 functions in succession on document ready. One getting ajax call and the other being liquid slider init.

It was giving above error.

However when I included the init method call to the end of the ajax method, it was working as intended.

image

I will be closing this issue after this post.

Thank you very much for this brilliant product.

Regards Inyeol

KevinBatdorf commented 10 years ago

Hey, sorry I took so long to reply, but glad you figured it out. Let me know if there is anything more.