• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: multiple submit - possible workaround advice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple submit - possible workaround advice


  • Subject: Re: multiple submit - possible workaround advice
  • From: Mark Morris <email@hidden>
  • Date: Tue, 25 Apr 2006 09:40:08 -0500

Hello,

On Apr 25, 2006, at 8:50 AM, Robert Walker wrote:

Ondra,

Therefore, I am afraid that if you need a consistent behaviour of
Enter, there are only two solutions:

(a) single-submit form;
(b) JavaScript.

Yes, I understand your point here....

Even the concept of multiple-submits itself isn't necessarily supported
100%, but I'm going to err in favor of my little hidden 2x2.gif and test it
across several newer browsers and then accept it as working. And as a

However, as mentioned here multiple-submit is a workaround at best. HTML provides no "built-in" support for the concept. Obviously you wouldn't want to completely rely on the hidden image button workaround, just like you wouldn't want to completely rely on multiple-submit itself.

I would have to disagree to a degree here (as I try to remember back to my pre-WO days). You can put as many submit buttons as you want in a standard HTML form, but the form can only submit to one URL. Each submit button can have a different value that is submitted along with the rest of the form values, so you can tell which submit button was pressed. Behind the scenes, this is what WO is doing when you tell it the form has multiple submit buttons. The only thing that's not really defined, but seems to be the case, is that the first submit button is the one called when Enter is pressed within a text field in the form. I think the only way to be absolutely certain of the behavior would be to implement the previously mentioned javascript solution.


If designed correctly your application can benefit from this workaround. If your "default" action could have undesirable effects then it should be backed by a confirmation panel anyway.

On Apr 24, 2006, at 8:03 PM, WebObjects wrote:

Ondra,

Even the concept of multiple-submits itself isn't necessarily supported
100%, but I'm going to err in favor of my little hidden 2x2.gif and test it
across several newer browsers and then accept it as working. And as a
worse-case I have coded all submit actions to produce recoverable events if
a fault were to happen. And I'm using that handy tip to remove it from the
tab-order as well (thanks again guys).


Did I mention it has to work in a micro-browser on the University's PDA/Cell
Phone(s)? Sure to turn the simplest app into a four week project :)


Thanks for your input - everyone.

-Bill


on 4/24/06 15:57, Ondra Cada at email@hidden wrote:

Robert,

On 24.4.2006, at 23:54, Robert Walker wrote:

So if one had the need to make it appear that the "default" button
should be the second or third button in the form, wouldn't it be
possible to create this "hidden" image button at the top of the
form and bind its action to the same action as the one you want for
your "default" action?

Chuck or someone with greater experience may correct me, but I do
fear the behaviour of a multi-submit form when an Enter is pressed in
some field is undefined at the HTML level, and essentially each
browser may interpret the event in a different way (say, browser A
would always take the very first submit of the form, whilst browser B
would always take the first button after the textfield in which the
Enter was pressed).


Therefore, I am afraid that if you need a consistent behaviour of
Enter, there are only two solutions:

(a) single-submit form;
(b) JavaScript.
---
Ondra Čada
OCSoftware:     email@hidden               http://www.ocs.cz
private         email@hidden             http://www.ocs.cz/oc


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40concyse.com


This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

-- Robert Walker email@hidden


Regards, Mark

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: multiple submit - possible workaround advice
      • From: Robert Walker <email@hidden>
References: 
 >Re: multiple submit - possible workaround advice (From: WebObjects <email@hidden>)
 >Re: multiple submit - possible workaround advice (From: Robert Walker <email@hidden>)

  • Prev by Date: Re: Connecting to Mysql4.1 from EOModeler on WinXP
  • Next by Date: Re: WO Training
  • Previous by thread: Re: multiple submit - possible workaround advice
  • Next by thread: Re: multiple submit - possible workaround advice
  • Index(es):
    • Date
    • Thread