Initial commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
|
||||
$(function(){
|
||||
$.ajax({
|
||||
url:"dbmanupulate.php",
|
||||
type:"POST",
|
||||
data:"actionfunction=showData&page=1",
|
||||
cache: false,
|
||||
success: function(response){
|
||||
|
||||
$('#pagination').html(response);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
$('#pagination').on('click','.page-numbers',function(){
|
||||
$page = $(this).attr('href');
|
||||
$pageind = $page.indexOf('page=');
|
||||
$page = $page.substring(($pageind+5));
|
||||
|
||||
$.ajax({
|
||||
url:"dbmanupulate.php",
|
||||
type:"POST",
|
||||
data:"actionfunction=showData&page="+$page,
|
||||
cache: false,
|
||||
success: function(response){
|
||||
|
||||
$('#pagination').html(response);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user