Re: [Webwork-devel] CommandDriven behavior and enhancement
Brought to you by:
baldree,
rickardoberg
|
From: Hai P. <yf...@ya...> - 2002-04-05 02:52:23
|
Hi Rickard, Are you implying that we should not have multiple submit buttons in one form? That scenario is quite common actually. Forcing user to enable JavaScript just so you can use multiple submit buttons with CommandDriven action is a pretty bad idea. --- Rickard wrote: > FROM: RickardDATE: 04/03/2002 03:56:02SUBJECT: > [Webwork-user] Re: [Webwork-devel] CommandDriven > behavior and enhancement (Please CC list) > > Hai Pham wrote: > > > The point of CommandDriven is to provide multiple > > paths to the same action; > > > Multiple possible actions using same input/output, > yes. > > > and thus there can be more > > than one submit buttons in a form. > > > No, not necessarily. > > > How do you plan to > > use hidden fiels to achieve that? > > > The way I told you. The difference is that you > assume > that a single form > can lead to several different actions, and I don't. > I > would use either > multiple forms, or simple links (assuming there's no > actual form data > needed, which is not that uncommon). If you *need* > the > same form to go > to different commands on submit then that can be > accomplished using > JavaScript to modify the value of the hidden > "command" > field. > > /Rickard > > -- > Rickard Öberg > > > ===== > --------------------------------------------- > Hai Pham Quang > --------------------------------------------- > > __________________________________________________ > Do You Yahoo!? > Yahoo! Tax Center - online filing with TurboTax > http://taxes.yahoo.com/ ===== --------------------------------------------- Hai Pham Quang --------------------------------------------- __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ |