Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
82
rated 0 times [  88] [ 6]  / answers: 1 / hits: 27421  / 11 Years ago, mon, april 29, 2013, 12:00:00

I got a problem with flexslider, I need to download my picture in base64 from a webservice.
After the download is complete, I make an .append() to add my slide...



But sometimes, everything is added perfectly but the slider doesn't reload correctly
So I get code like this :
screen1



instead of code like this :
screen2



How can I reinitiate my slider in this case ?


More From » jquery

 Answers
51

Solution found !
Just add this line of code to remove the old slider ref if exists



$('#flexslider').removeData(flexslider);


[#78533] Sunday, April 28, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
shaina

Total Points: 161
Total Questions: 99
Total Answers: 108

Location: American Samoa
Member since Fri, Sep 24, 2021
3 Years ago
;