• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IE doesn't return value of submit button?

 
Allen Williams
Ranch Hand
Posts: 136
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic