Re: [ANNOUNCEMENT] HTML_QuickForm_Controller-0.9.2 (beta) Released.

From: Date: Thu, 02 Oct 2003 15:12:59 +0000
Subject: Re: [ANNOUNCEMENT] HTML_QuickForm_Controller-0.9.2 (beta) Released.
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8237@lists.php.net to get a copy of this message
<borz_off@cs.msu.su> wrote : > Hi! > > Robert Cummings wrote: >>> The new PEAR package HTML_QuickForm_Controller-0.9.2 (beta) has been >>> released at http://pear.php.net/. >>> >>> Release notes >>> ------------- >>> Added Page::setDefaultAction() method to fix the Controller's behaviour when >>> user presses >>> Enter instead of clicking on one of submit buttons. Thanks to Mike Carter >>> for reporting this. >> >> Does this support opera which when you press enter submits the first >> available submit button by default instead of not submitting any submit >> field at all? > > No, this takes care of the event where no submit button was "pressed". > > I didn't know about this behaviour of Opera, but I don't think this is a > problem: just arrange the buttons so that the default one will be the > first. :] Yes, that's a common problem with all browsers I know of. Pressing 'Enter' will submit your form by using the first submit button found in the html. My workaround is to use a transparent gif and add it on top of the form as an image type element. Maybe {display:none;} could work too. But this is left as an exercice to the user. A getDefaultButtonName() could maybe be useful here ? Bertrand Mansion Mamasam

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