Re: onclick support patch to Pager by Robert Freund

From: Date: Thu, 19 Jul 2007 10:48:01 +0000
Subject: Re: onclick support patch to Pager by Robert Freund
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27689@lists.php.net to get a copy of this message
Thanks for your answer Massimiliano, I was tried the method you say before and not works for me. In my html I need to do ajax calls. This one works perfectly: <span onclick="xajax_Agendes(a,b,c);"> But this one not (writed by hand, not generated with pager): <a href="javascript:xajax_Agendes(a,b,c);">click here</a> Not work because this link changes my page and I see the 'true' word in all blank screen. This is the reason I tried it with onclick patch. It seems that the <a> tag disables my ajax functionality. Thanks. En/na Massimiliano Arione ha escrit:
Leo Márquez wrote:
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.
I use javascript links with Pager without any patch. Options:
'path'     => '',
'append' => false, 'fileName' => 'javascript:myJsFunction(myParameter1,myParameter2,%d)',
-- Leo Márquez [ Calidae - www.calidae.com ]

« previous php.pear.general (#27689) next »