jquery - Isotope Append Ajax Request -


been trying while, using suggestions on stack overflow other websites can not work 100%;

could shed how append work on ajax call on isotope.

here code.

var $grid = jquery('.pro-main').isotope({     itemselector: '.showportfolio',     percentposition: true,     masonry: {         columnwidth: '.showportfolio'     } });  var xxxform = {     'id': galid,     'last': gallast,     'next': nextnum,     'version': galvers,     'radius': galrad };  $.ajax({     type: 'post',     url: '/wp-content/plugins/xxxxxxxxx/xxxxxxxxx/ajax-frontend.php',     data: xxxform,     datatype: 'html',     encode: true }).done(function(data) {      $grid.append(data[0]).isotope('appended', data[0]);  }); 

the ajax call brings div elements.

thanks receive :)

found out on complicating things , can see this:

var xxxform = {     'id' : galid,     'last' : gallast,     'next' : nextnum,     'version' : galvers,     'radius' : galrad };  $.ajax({     type: 'post',     url: '/wp-content/plugins/xxxx/xxxxxxx/ajax-frontend.php',     data: xxxform,     datatype: 'html',     encode: true }).done(function(data) {      var $newitems = $(data[0]);     $('.pro-main').append( $newitems ).isotope( 'insert', $newitems );  }); 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -