Re: QuickForm - adding Javascript Confirm

From: Date: Sun, 18 Sep 2005 13:36:43 +0000
Subject: Re: QuickForm - adding Javascript Confirm
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21022@lists.php.net to get a copy of this message
On Sep 18, 2005, at 1:25 AM, Alexey Borzov wrote:
Hi, Charles Kline wrote:
Is there a way to add a javascript confirm to a QuickForm? I have a delete checkbox that I want to have a confirm alert if it is submitted when that box is checked. No clue how to set that up.
Before asking a question "How do I do foo with QuickForm" you should answer a question "How do I do foo *without* QuickForm". Do you know how to do an alert? Do you know how to call some function on form submit?
Hi Alexy, I do know how to do foo without QuickForm. What I am not sure I guess really, is how to add the event handler to the checkbox. Like, how do I add an onClick() to the checkbox element? Thanks, Charles

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