HighDots Forums  

Button Element and Internet Explorer 6.0

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Button Element and Internet Explorer 6.0 in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dom
 
Posts: n/a

Default Button Element and Internet Explorer 6.0 - 08-03-2004 , 10:24 AM






Hi,

I wanted to use the Button Element to submit a form like this example:

<form action="/test.exe" method="post">
<button id="ID_BUTTON_OK" name="_WEB_EVENT_HANDLER_" type="submit"
value="ID_BUTTON_OK">Login</button>
</form>


If I submit the form, the _WEB_EVENT_HANDLER_ gets the value "Login",
but as defined in HTML 4.01 the value which is submitted should be the
value field in the Button Element ("ID_BUTTON_OK" in this case).
I'm using the newest Internet Explorer Series 6. At the Mozilla
Browser it works perfectly!

Is the Internet Explorer doing this thing totally wrong??? Or am I
doing this thing wrong? Thank's for help!

Dominik


HTML 4.01
---------------------------------------------------------
17.5 The BUTTON element
<!ELEMENT BUTTON - -
(%flow* -(A|%formctrl;|FORM|FIELDSET)
-- push button -->
<!ATTLIST BUTTON
%attrs; -- %coreattrs, %i18n, %events
--
name CDATA #IMPLIED
value CDATA #IMPLIED -- sent to server when
submitted --
type (button|submit|reset) submit -- for use as form button
--
disabled (disabled) #IMPLIED -- unavailable in this context
--
tabindex NUMBER #IMPLIED -- position in tabbing order --
accesskey %Character; #IMPLIED -- accessibility key character
--
onfocus %Script; #IMPLIED -- the element got the focus --
onblur %Script; #IMPLIED -- the element lost the focus
--
Quote:
---------------------------------------------------------


Reply With Quote
  #2  
Old   
Claire Tucker
 
Posts: n/a

Default Re: Button Element and Internet Explorer 6.0 - 08-03-2004 , 11:28 AM






On 3 Aug 2004 07:24:34 -0700, dhaas (AT) gmx (DOT) de (Dom) wrote:

Quote:
Hi,

I wanted to use the Button Element to submit a form like this example:

form action="/test.exe" method="post"
button id="ID_BUTTON_OK" name="_WEB_EVENT_HANDLER_" type="submit"
value="ID_BUTTON_OK">Login</button
/form


If I submit the form, the _WEB_EVENT_HANDLER_ gets the value "Login",
but as defined in HTML 4.01 the value which is submitted should be the
value field in the Button Element ("ID_BUTTON_OK" in this case).
I'm using the newest Internet Explorer Series 6. At the Mozilla
Browser it works perfectly!

Is the Internet Explorer doing this thing totally wrong??? Or am I
doing this thing wrong? Thank's for help!

As I recall, yes... Internet Explorer gets this wrong. There's not
much you can do about it. (I assume they went a bit too far reusing
code from <input type="submit" ...>.)

For now, a workaround is to give each button a different name and just
check for the presence of that name, disregarding the value. Note,
though, that many browsers won't send *any* of your buttons as
successful controls if the form is submitted by "hitting enter" in a
text field rather than triggering the button, so you'll have to pick a
safe default case for when none of them appear at all.

All the best,
-Claire


Reply With Quote
  #3  
Old   
Dom
 
Posts: n/a

Default Re: Button Element and Internet Explorer 6.0 - 08-05-2004 , 02:29 AM



Ok thank you Claire. But do you think Microsoft will fix it?

Quote:
As I recall, yes... Internet Explorer gets this wrong. There's not
much you can do about it. (I assume they went a bit too far reusing
code from <input type="submit" ...>.)

For now, a workaround is to give each button a different name and just
check for the presence of that name, disregarding the value. Note,
though, that many browsers won't send *any* of your buttons as
successful controls if the form is submitted by "hitting enter" in a
text field rather than triggering the button, so you'll have to pick a
safe default case for when none of them appear at all.

Reply With Quote
  #4  
Old   
CJM
 
Posts: n/a

Default Re: Button Element and Internet Explorer 6.0 - 08-05-2004 , 07:54 AM



Microsoft are not going to fix anything much in IE... They are apparently
rewriting it for Longhorn, and it will be quite a change (maybe even for the
better??!), but AFAIK, there will generally only be bug/security fixes until
then.

Chris



Reply With Quote
  #5  
Old   
Arne
 
Posts: n/a

Default Re: Button Element and Internet Explorer 6.0 - 08-05-2004 , 08:37 AM




CJM wrote:
Quote:
Microsoft are not going to fix anything much in IE... They are apparently
rewriting it for Longhorn, and it will be quite a change (maybe even for the
better??!), but AFAIK, there will generally only be bug/security fixes until
then.

And AFAIK we have to wait two more years for the new IE and Longhorn?
I also understand that the new IE (ver. 7.0?) will not be able to
install to older systems, like XP?

--
/Arne


Reply With Quote
  #6  
Old   
CJM
 
Posts: n/a

Default Re: Button Element and Internet Explorer 6.0 - 08-05-2004 , 10:37 AM



Quote:
And AFAIK we have to wait two more years for the new IE and Longhorn?
I also understand that the new IE (ver. 7.0?) will not be able to
install to older systems, like XP?

--
/Arne
That is essentially it...! Obviously, with Microsoft you cant be sure until
it is sat in front of you.

It seems an odd decision, since it might be the catalyst we need to
encourage people to move across to other browsers.

Chris




Reply With Quote
  #7  
Old   
Spartanicus
 
Posts: n/a

Default Re: Button Element and Internet Explorer 6.0 - 08-05-2004 , 10:45 AM



"CJM" <cjmwork (AT) yahoo (DOT) co.uk> wrote:

Quote:
Microsoft are not going to fix anything much in IE... They are apparently
rewriting it for Longhorn, and it will be quite a change (maybe even for the
better??!), but AFAIK, there will generally only be bug/security fixes until
then.
There are rumours that the Longhorn version will not offer better/more
standards support: http://ln.hixie.ch/?start=1088526392&count=1

Bottom of the page, the paragraph that starts with "In other news,"

--
Spartanicus


Reply With Quote
  #8  
Old   
Keith Bowes
 
Posts: n/a

Default Re: Button Element and Internet Explorer 6.0 - 08-05-2004 , 05:37 PM



Brian wrote:
Quote:
"Microsoft has always made it clear however that we will not support
every detail of every W3C recommendation simply because it is a W3C
recommendation."

In other words, the answer to the question of whether submit buttons
will ever work correctly in IE, the answer is no.



Reply With Quote
  #9  
Old   
Keith Bowes
 
Posts: n/a

Default Re: Button Element and Internet Explorer 6.0 - 08-06-2004 , 10:56 PM



Brian wrote:
Quote:
"Microsoft has always made it clear however that we will not
support every detail of every W3C recommendation simply because it
is a W3C recommendation."


Just to be clear: I did not write that, I quoted it. DMassey wrote it.

I understand that. I'm just a tad hostile toward MS for not fixing
these little but annoying bugs in *years*. It wasn't meant to be personal.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.