Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

pagination using AJAX

function getresult(url) {
	$.ajax({
		url: url,
		type: "GET",
		data:  {rowcount:$("#rowcount").val(),"pagination_setting":$("#pagination-setting").val()},
		beforeSend: function(){$("#overlay").show();},
		success: function(data){
		$("#pagination-result").html(data);
		setInterval(function() {$("#overlay").hide(); },500);
		},
		error: function() 
		{} 	        
   });
}
function changePagination(option) {
	if(option!= "") {
		getresult("getresult.php");
	}
}
Source by phppot.com #
 
PREVIOUS NEXT
Tagged: #pagination #AJAX
ADD COMMENT
Topic
Name
9+9 =