Re: [solved]onclick support patch to Pager by Robert Freund

From: Date: Thu, 19 Jul 2007 13:59:13 +0000
Subject: Re: [solved]onclick support patch to Pager by Robert Freund
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27695@lists.php.net to get a copy of this message
Leo Márquez wrote:
Thanks all for your answer. The problem is solved. I have to combine the fileName and onclick options to don't execute the href of the <a> tag. Then I configure pager with: 'path'=>'./', 'fileName'=>'/plana.php?idplana='.$filtres['idplana'].'#', 'onclick' => 'xajax_getAgendes('.$filtres['idfitxa'].','.$filtres['idplana'].',%d)', Filename is identical to my actual url with a final '#' character. So the link is not executed and the page don't change. Finally with the onclick event I execute my javascript/ajax function and the result is as I expected.
This is not a real solution, but just a workaround (ugly, in my opinion). It only works if link points to the same page. -- Massimiliano Arione http://garakkio.altervista.org

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