Re: [ PEAR ] - Quickform Event
| From: | Justin Patrin | Date: | Sat, 12 Feb 2005 19:20:43 +0000 |
| Subject: | Re: [ PEAR ] - Quickform Event | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17508@lists.php.net to get a copy of this message | ||
On Fri, 11 Feb 2005 08:03:37 +0100, Cédric Fournier <cfournier@itop.fr> wrote:
> Thanks for your anwer that works.
>
> But i have another question. I want also disabled the JS check when i click
> on my "delete" button. Do you have an idea ?
Disable the onsubmit for the form. Something like:
document.forms["formName"].onsubmit = "";
>
> -----Message d'origine-----
> De : Justin Patrin [mailto:papercrane@gmail.com]
> Envoyé : jeudi 10 février 2005 17:25
> À : Colin Ross
> Cc : pear-general@lists.php.net
> Objet : Re: [ PEAR ] - Quickform Event
>
> On Wed, 9 Feb 2005 22:59:46 -0800, Colin Ross <cross@intraxinc.com> wrote:
> > Off the top of my head....you add it as an attribute to the submit button,
> right?
> > Like:
> > addElement('button','name', 'value',
> > array('onClick'=>'alert('Are you
> > sure?')')); just a blind guess, but a start c
>
> or:
>
> $el =& $form->getElement('elementName');
> $el->updateAttributes(array('onclick' =>
> 'someJavaScriptFunction(this)'));
>
> >
> > -----Original Message-----
> > From: Cédric Fournier [mailto:cfournier@itop.fr]
> > Sent: Wednesday, February 09, 2005 10:12 PM
> > To: pear-general@lists.php.net
> > Subject: [ PEAR ] - Quickform Event
> >
> > Hi all,
> >
> > I want to add an JS event on a submit button. Something like a
> > confirm. How could i implement this beavior ?
> >
> > Thanks fo your answers,
> > Cedric
> >
--
Justin Patrin