Re: onclick support patch to Pager by Robert Freund

From: Date: Thu, 19 Jul 2007 12:53:18 +0000
Subject: Re: onclick support patch to Pager by Robert Freund
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27692@lists.php.net to get a copy of this message
Leo Márquez wrote:
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.
I hope not to go off topic, since this is not a php/pear issue. You can resolve your javascript problem using a "cancelClick" function, like the one you can find in DOMhelp library http://icant.co.uk/sandbox/domhelp/ -- Massimiliano Arione http://garakkio.altervista.org

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