![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
| --------------------------------------------------------- |
#2
| |||
| |||
|
|
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! |
#3
| |||
| |||
|
|
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. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
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. |
#6
| |||
| |||
|
|
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 |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
"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." |
#9
| |||
| |||
|
|
"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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |