aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes object doesn't support this property or method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "object doesn Watch "object doesn New topic
Author

object doesn't support this property or method

Gireesh Mulage
Ranch Hand

Joined: Mar 08, 2010
Posts: 44
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
Sounds like you named your button "submit" which overrides document.formName.submit(). Rename your button to "btnSubmit".

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

Never name anything "submit".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: object doesn't support this property or method