Re: onclick support patch to Pager by Robert Freund

From: Date: Thu, 19 Jul 2007 10:34:55 +0000
Subject: Re: onclick support patch to Pager by Robert Freund
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27688@lists.php.net to get a copy of this message
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)', -- Massimiliano Arione http://garakkio.altervista.org

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