aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes IE doesn't return value of submit button? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "IE doesn Watch "IE doesn New topic
Author

IE doesn't return value of submit button?

Allen Williams
Ranch Hand

Joined: Sep 04, 2006
Posts: 136
Here is a form (it is the output of a jsp, but that's irrelevant at this point). This was cut and pasted directly from Internet Explorer's View->Document Source menu:



Note at the end where I've bolded the button. Here is a fragment of the TrbMgr servlet this form calls:



And, here is what the log prints out:


**********
TribeMgr: todo= New Tribe


In other words, IE is sending the text on the button and not the "value='btnvalue'" from the <input> tag.

Mozilla works just fine, and I don't think I've ever seen this. Has anyone else? Is this a quirk in IE I don't know about? I did a google search and haven't found anything so far.

TIA


-------<br />Thanks & regards,<br />anw
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

You've found yet another instance where Internet Explorer does not follow the HTML 4 Specification: BUTTON specification.

Both IE6 and IE7 exhibit this behavior with your sample code.

Sigh.
[ March 27, 2007: Message edited by: Bear Bibeault ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: IE doesn't return value of submit button?
 
Similar Threads
problem when integrating jspell with tinyMCE editor
fieldset and form problem
checked radio button from an Enum value
Radio Select and Other
JSP <a href> tags breaks page functionality