tags:

views:

31

answers:

1

i am using JQUERY plug in for paging

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

my code as as following

i have created one .js file called inilization.js and bellow is total code in inilization.js

function init(a,b)
{
$("#pager").pager({ pagenumber: a, pagecount: b, buttonClickCallback: PageClick });
}

when i call the page from jquery LOAD

   $('#divbody').load('abc.php?pid=1', null, function() {
   init(1,5)
   });

this work fine with Firefox but not working with internet explorer i get error in internet explorer7

    PageClick is undefined

Thanks

A: 

You need to define the PageClick callback somewhere.

function init(a,b)
{
    $("#pager").pager({ 
        pagenumber: a, 
        pagecount: b, 
        buttonClickCallback: function(pageclickednumber) {
            init(pageclickednumber, b);
        }
    });
}
Darin Dimitrov
worked but i change the function little bit init(pageclickednumber, b,c); $('#divbody1').load("abc.php?pid="+c+"is this correct approach...?
air