RE: Default Submit Button

I think what was being conveyed was that in I.E. you hit the enter button
and automatically it submits the form if you have a form

In netscape it doesn't do this. You would either click the button or tab
onto it

Darren

Darren Ferguson
Software Engineer


On Mon, 10 Sep 2001, Mike Carlson wrote:

> How is it specifically an Internet Explorer problem if HTML cant handle
> a default button behavior?
> 
> That makes no sense?
> 
> That's like saying it is Ford's problem there is no 45 octane gas
> available in my area.
> 
> Here is the w3 spec for forms:
> 
> http://www.w3.org/TR/REC-html40/interact/forms.html
> 
> Specifically this line:
> 
> "push buttons: Push buttons have no default behavior. Each push button
> may have client-side scripts associated with the element's event
> attributes. When an event occurs (e.g., the user presses the button,
> releases it, etc.), the associated script is triggered."
> 
> If HTML cant handle it, how is the browser supposed to know? I am sure
> you could create this behavior with JavaScript and Focus() method of the
> OnLoad event. I am no JS guru, but I am sure it could be done.
> 
> I know you can do it in VBScript, but that limits you to IE.
> 
> ************************
> Mike Carlson
> http://www.domitianx.com
> domitianx@domitianx.com
> 
> Thought Of The Moment:
> 
> "My software never has bugs. It just develops random features."
> ************************
> 
> > -----Original Message-----
> > From: www-html-request@w3.org 
> > [mailto:www-html-request@w3.org] On Behalf Of Clover Andrew
> > Sent: Monday, September 10, 2001 5:20 AM
> > To: www-html@w3.org
> > Subject: Re: Default Submit Button
> > 
> > 
> > Clark C . Evans <cce@clarkevans.com> wrote:
> > 
> > > How do I specify that a particular button is
> > > the default submit button?
> > 
> > You can't, because HTML has no concept of a 'default submit 
> > button'. This is specifically an Internet Explorer problem.
> > 
> > To get around the problem you could use hidden or dummy 
> > submit/image form controls to 'swallow' the enter-submission 
> > (which could then be routed to a different button using JavaScript).
> > 
> > For more about this irritating issue, see 
> > http://ppewww.ph.gla.ac.uk/> ~flavell/www/formquestion.html .
> > 
> > 
> > -- 
> > Andrew Clover
> > 
> > Technical Consultant
> > 1VALUE.com AG
> > 
> > 
> 

Received on Monday, 10 September 2001 20:05:59 UTC