Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

object doesn't support this property or method

 
Gireesh Mulage
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi All ,

In JSP page , i have 2 button in which one is of type 'submit' and other is of 'button' . In the form action , i am putting one action for one button . And for other button , i am using document.forms[0].action="xyz.do";
document.forms[0].submit();


Now if i click on button it is giving error called object doesn't support this property or method .
And for other one whose action path is added as a action attribute with form is working fine .

Please help me on this .....
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you named your button "submit" which overrides document.formName.submit(). Rename your button to "btnSubmit".

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never name anything "submit".
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic