Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 396305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:32:21+00:00 2026-05-12T16:32:21+00:00

I am using JQUERY plug-in for paging: http://jonpauldavies.github.com/JQuery/Pager/PagerDemo.html it works fine on page. But

  • 0

I am using JQUERY plug-in for paging:

http://jonpauldavies.github.com/JQuery/Pager/PagerDemo.html

it works fine on page. But when I call page via JQUERY’s load method, paging not showing

$('#divbody').load('abc.php?q='+pid, null, function(){
});

and code on abc.php is:

 <script type="text/javascript" language="javascript">
 $(document).ready(function() {
   $("#pager").pager({ pagenumber: <?php echo $pageNum ?>, pagecount: <?php echo     $maxPage; ?>, buttonClickCallback: PageClick               });
$('#divbody1').load("xyz.php?pid=<?php echo $pid; ?>&page=" + <?php echo $pageNum ?>);

    });

    PageClick = function(pageclickednumber) {
        $("#pager").pager({ pagenumber: pageclickednumber, pagecount: <?php echo $maxPage; ?>, buttonClickCallback: PageClick });
        $('#divbody1').load("xyz.php?pid=<?php echo $pid; ?>&page=" + pageclickednumber);
    }
</script>

and xyz.php just have echo statement to print pid value.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:32:21+00:00Added an answer on May 12, 2026 at 4:32 pm

    Externalize the initialization of the pager in a separate javascript file:

    function initializePager(opts) {
        $("#pager").pager({ ... });
    }
    

    In abc.php you could call this function when the DOM is ready for normal requests:

    <script type="text/javascript">
    $(function() { 
        initializePager({ 
            pagenumber: '<?php echo $pageNum ?>', 
            ... 
        }); 
    });
    </script>
    

    And finally on your ajax success callback call the initialization function once again:

    $('#divbody').load('abc.php?q='+pid, null, function() {
        initializePager({
            pagenumber: '<?php echo $pageNum ?>', 
            ... 
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using this Jquery plug-in http://www.trirand.com/blog/jqgrid/jqgrid.html How do you: edit the cell content (looking at
I'm using the following JQUERY Plug-in to upload ideas: http://valums.com/ajax-upload/ For some reason I'm
I am using older JQuery Autocomplete plug-in (the one shown here - http://view.jquery.com/trunk/plugins/autocomplete/demo/ ).
I am using the following jQuery plug-in, i.e: http://flowplayer.org/tools/scrollable.html The issue I am having
I'm using a jQuery plug-in Boxy ( http://onehackoranother.com/projects/jquery/boxy/ ) to open a pop-up layer
I am using the blueimp jQuery file upload plug-in located here https://github.com/blueimp/jQuery-File-Upload and according
I am using jQuery Uploadify plug-in. It works great for what I'm doing, but
I'm using the quickSearch jQuery plug-in: http://lomalogue.com/jquery/quicksearch/ The reason it's not working currently in
On a portal's main page, I'm using a jQuery container plug-in, and by this
I am using the jQuery disable on submit plug-in but I have a problem.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.