0

I have developed Custom module in which data retrieving from db perfectly, but i want to show first ten data(10 rows) at first page and at second page display next ten data and so on by Ajax call.

1 Answer 1

0
jQuery(document).ready(function() {
    jQuery(".pagination a").live('click', function(event) {
        event.preventDefault();
        page = jQuery(this).html();
        updateTable(page);
    });

function updateTable(pageno){
    jQuery.ajax({
     type:"get", 
     url:'<?php echo $this->getUrl('*/*/filterproduct'); ?>?p='+pageno+', 
     success: function(data) {
         jQuery("#productlist").html(data);
     }
});
}

Detailed instructions can be found here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.