Reinitialize jQuery plugin after AJAX call -


i'm using infinite ajax scroll: https://github.com/webcreate/infinite-ajax-scroll

the user possibility sort results name example or filter results. but, when have update navigation links.

the plugin launched (for example):

jquery.ias({   container     : ".listing",   item      : ".post",   pagination    : "#content .navigation",   next      : ".next-posts a",   loader    : "images/loader.gif" }); 

how reinitialize plugin after ajax call new navigation links work plugin?

you have call again, when ajax call done:

$.ajax({   url: "yoururl." }).done(function() {    jquery.ias({         container     : ".listing",         item      : ".post",         pagination    : "#content .navigation",         next      : ".next-posts a",         loader    : "images/loader.gif"   }); }); 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -