Re: 'ajaxing' Pager links
| From: | Lorenzo Alberton | Date: | Tue, 09 May 2006 08:05:50 +0000 |
| Subject: | Re: 'ajaxing' Pager links | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24012@lists.php.net to get a copy of this message | ||
Hi,
Leo Márquez wrote:
I want to change Pager links to make ajax javascript calls instead of normal links. I have reviewed the Pager doc but I don't found the best way to do it. I want to change for example the next link: somecode.php?pageID=3 to a javascript code: getPage(3)Have a look at the example #2 in the manual: http://pear.php.net/manual/en/package.html.pager.intro.php#package.html.pager.intro.example2 there you can see how to rewrite your links. hint: $params['fileName'] = 'getPage(%d)'; HTH Regards, -- Lorenzo Alberton http://pear.php.net/user/quipo