使它像这样工作:
$(function(){ var $container = $('#movieBox'); $container.isotope({ itemSelector: '.movie' }); $.ajaxSetup({cache:false}); var ajax_load = "<img src='images/load.gif' alt='loading...' />"; $('#genreFilter').change(function(){$('#genreFilter').change(function(){ var getQuery = 'loadMovies.php?'; getQuery += 'genrefilter='+movieSelection.elements["genreFilter"].value; getQuery += '&yearfilter='+movieSelection.elements["yearFilter"].value; getQuery += '&titlesort='+movieSelection.elements["titleSort"].value; getQuery += '&ratingsort='+movieSelection.elements["ratingSort"].value; getQuery += '&yearsort='+movieSelection.elements["yearSort"].value; getQuery += '&runtimesort='+movieSelection.elements["runtimeSort"].value; getQuery += '¤tPage='+currentPage; return $.ajax({ cache:false, url: getQuery, success: function(data){$container.isotope('insert', data)} }); }); });
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)