Need assistance in getting a jauery plugin working

Need assistance in getting a jauery plugin working

Hi JAKE,

I have got yet another cool jquery pagination plugin, the documentation of which is located at :


As usual I need to set the  onPageClicked function and cannot figure out how as its different from others :

Here is how we are supposed to call it :


  1. < script type = "text/javascript" >
    // Initial call
    $(document).ready(function(){
         
         $("#pagination").jPaginator({
             nbPages:64,
             marginPx:5,
             length:8,
             overBtnLeft:'#over_backward',
             overBtnRight:'#over_forward',
             maxBtnLeft:'#max_backward',
             maxBtnRight:'#max_forward',
             onPageClicked: function(a,num) {
                 $("#page").html("Page "+num);
             }
         });
         
    });
      
    </ script >
And I need to set it as under :

  1. script type="text/javascript">
  2.                 // Initial call
  3.                 \$(document).ready(function(){
  4.                         
  5.                         \$("#pagination").jPaginator({ 
  6.                                 nbPages:$lastpage,
  7.                                 marginPx:5,
  8.                                 length:8, 
  9.                                 overBtnLeft:'#over_backward', 
  10.                                 overBtnRight:'#over_forward', 
  11.                                 maxBtnLeft:'#max_backward', 
  12.                                 maxBtnRight:'#max_forward', 
  13.                                 onPageClicked: function(a,num) { 
  14.                                         ("vieword2.pl?").html("Page="+$page); 
  15.                                 } 
  16.                         });
  17.                         
  18.                 });
  19.                  
  20.                 </script>

I am not sure what ".html" does there in between, but my loading page url should be like vieworde2.pl?page=$page where $page is the page number variable for example clicking on no.2 on the pagination counter will load url vieword2.pl?page=2

Your help would be appreciated !!
Many many thanks !!!
Tonya.