onclick support patch to Pager by Robert Freund
| From: | Leo Márquez | Date: | Thu, 19 Jul 2007 09:39:44 +0000 |
| Subject: | onclick support patch to Pager by Robert Freund | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27687@lists.php.net to get a copy of this message | ||
Hi!,
I'm trying to use Pear::Pager with Robert Freund onclick support patch applied.
But it don't work to me. I have doubts on how I have to use the onclick method.
I have a javascript function that works if I do a simple html onclick.
In Pager I have:
'fileName' => '/?page=%d', <---- ????
'onclick' => 'xajax_getAgendes('.$filtres['idfitxa'].','.$filtres['idplana'].',%d)',
'append' => false
I must combine fileName with onclick? I can't use only 'onclick'?
The html output I want is:
onclick="xajax_getAgendes(286,23,2);"
The result I have obtaining now is links that change my url and submit the link, not execute the javascript funcion in tha same page.
I hope you understand my problem. Sorry about my english.
Thanks.
Leo
PD: Before I sent this email to this list I have tried to write directly Robert Freund via web form in pear. But the adding captcha artimetic operation always fails to me. I don't know if it is a bug or my mind and my calculator are silly!!