mercredi 25 mars 2015

jQuery Ready Event Not Working After AJAX Load


Excuse me...


Found any answer there and still didn't works.


So there is my scripts:



$(document).ready(function() {
$('.gifs').gifplayer();
});


And dynamic content loaded by AJAX:



<img class="gifs post img-responsive img-bordered" width="100%" src="<?php echo $post->thumb_url;?>" data-gif="<?php echo $post->url;?>" />


Image with class "gifs" should called "gifplayer" function. But everytime ajax loaded, it wont works. What I should do to get a best implementation for this?


That's all and thank you...





Aucun commentaire:

Enregistrer un commentaire