Closed Vitoko closed 11 years ago
Hi @Vitoko!
I'm guessing the #principalMovie
div contains AnythingSlider? If that is true, then the ajax success code is completely replacing the slider. You will then need to re-initialize AnythingSlider on the new code.
First, I would move the script inside of #principalMovie
into the document head, then try something like this:
objajax.success(function(respuesta,textostatus){
$("#principalMovie")
.html(respuesta)
.find('#slider')
.anythingSlider({ /* options */ })
.anythingSliderVideo({ /* options */ });
});
Hi @Mottie! Your solution works fine!! now everything is more stable.. thanks!
Awesome! :)
Hi everyone, i'm gonna try to resume my code as much as possible:
i have this page, show.php:
So... the first time when i load show.php, everything is normal (i put a console message inside
isVideoPlaying()
that shows the current time of video, like:this, shows that message every 17 seconds more or less.
Ok, here is the problem: when show.php found new videos, reload the page div:principal.php into the div, and it seems to slideshows do a goForward() function, and create a second instance or something, beacouse now, the message shows every 7-8 seconds, when differents times (old video and new video playing i guess)...
¿what I can do? i mean, refreshing the page, clean all variables, times, etc.
Thanks and sorry with my english..