473,395 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Button Element and Internet Explorer 6.0

Dom
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
--

---------------------------------------------------------
Jul 20 '05 #1
11 3081
Dom wrote:
I wanted to use the Button Element to submit a form
You might want to consider <input type="submit"> instead.

http://www.htmlhelp.com/reference/ht...ms/button.html
<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"


url?

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
On 3 Aug 2004 07:24:34 -0700, dh***@gmx.de (Dom) wrote:
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
Jul 20 '05 #3
Dom
Ok thank you Claire. But do you think Microsoft will fix it?
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.

Jul 20 '05 #4
CJM
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
Jul 20 '05 #5

CJM wrote:
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
Jul 20 '05 #6
"CJM" <cj*****@yahoo.co.uk> wrote:
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
Jul 20 '05 #7
CJM
>
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
Jul 20 '05 #8
Spartanicus wrote:
There are rumours that the Longhorn version will not offer
better/more standards support


MS employees seem to be announcing the fact.

http://channel9.msdn.com/ShowPost.as...ID=11157#11157

After protesting that MS does realize that support for W3C
recommendations is important to web developers, and bemoaning the lack
thereof in IE, MS employee DMassey adds this priceless gem:

"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."

I'm amused by his tone, as if it were merely complaints from an
anal-retentive standards crowd.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #9
Brian wrote:

"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.

Jul 20 '05 #10
Keith Bowes wrote:
Brian wrote:
"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.
In other words, the answer to the question of whether submit buttons
will ever work correctly in IE, the answer is no.


The answer is "not necessarily".

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #11
Brian wrote:
"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.

Jul 20 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tom Asken | last post by:
Short version: IE 6.0 wrongly posts <button ..> value. Internet Explorer should only post the value of the clicked submit button - but IE 6 posts the value of several submit buttons if they have...
3
by: lee | last post by:
Hello I need some javascript code I've written to handle 2 values from an HTML form. I've been successful using the "label" attribute (I've simplied the example below): <input type="radio"...
3
by: JCharlie | last post by:
hi all. I´ve a problem with x button on internet explorer. Some users fills an informative form, they push x button and i don´t save the information. How can i disable the x button on internet...
7
by: Stefan Mueller | last post by:
How can I set the Name of a button? I tried xelement = document.createElement("input") xelement.type = "button" xelement.name = "MyButton" but it does not work with the Internet Explorer...
2
by: Takuya Matsumoto | last post by:
Hi to all, I was wondering whether this was possible/how it was possible. I would like to add a custom button to Internet Explorer ReBar. I believe it is called ReBar or CoolBar; what I mean...
7
by: Stewart Saathoff | last post by:
Hello, Does anyone know how to open an Internet Explorer URL with a specified Path when someone clicks a URL?
7
by: jab3 | last post by:
Hello. I'm wondering if someone can answer something I'm sure has been answered a thousand times before. I am apparently just too dumb to find the answer. :) I've found information about the...
8
by: Richard Lionheart | last post by:
Hi All, The test page follows. Clicking the button brings up a message box announcing that the browser had entered the function intended to populate the text area. Dismissing the message box...
2
by: TheSouthLondonSlasher | last post by:
Thank you in advance to anyone who may be able to help. This is my first attempt at JavaScript, so I apologize if I've done something blatantly stupid in the below code. Basically, I have a form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.