Re: QuickForm_Controller setDefaultAction not working

From: Date: Fri, 19 Aug 2005 17:05:35 +0000
Subject: Re: QuickForm_Controller setDefaultAction not working
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20486@lists.php.net to get a copy of this message
On 8/19/05, Alexey Borzov <borz_off@cs.msu.su> wrote: > Hi, > > Andrew Zahra wrote: > >> There was a thread recently about this. I assume that you have a > >> "previous" button and it comes before the "next" button? Well, the > >> standard says that the first button found should act as if it was > >> clicked. So either you switch the order of the buttons (not a great > >> solution) or add a hidden "next" button somewhere before the > >> "previous" button. > > > > i c, so the wizard example in the docs is a tad misleading then. > > In fact the behaviour of whether to mark the button pressed (and what button > exactly) is browser-dependent (and the browser name was not mentioned here at > all) . If you can provide a complete cross-browser solution for this, I'll be > extremely grateful. > The only cross-browser solution found previously was to add the "default" button before any other buttons. It could easily be added at the top of the form and hidden with CSS. I believe this will work in all browsers, but I also remember some problems with a certain browser not handling non-rendered elements. But I'm not certain. -- Justin Patrin

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