File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes error in document.form.submit(); Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "error in document.form.submit();" Watch "error in document.form.submit();" New topic
Author

error in document.form.submit();

smyle khanna
Ranch Hand

Joined: Jan 14, 2004
Posts: 54
Hi ..
I am facing a problem while submittin a page,there are javascript validation after with it shud submit
but during submittin it gives the following error
"Object doesnt support the property or method"
while all the form name is correct n i have given the action in the form where it has 2 redirect.i tried by changin the button type 2 submit and button also without any progress.....
plz help
smyle
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
are you doing document.formName.submit() ???
If that is not your problem then I need to see some code...
Eric
Mishra Anshu
Ranch Hand

Joined: Sep 16, 2003
Posts: 224
Hi!!
I got the same type of problem some days ago.
It may be that ( PLZ... check...)
<input type=button name="sendIt" value="sendIt" onclick = javascript: sendIt()>
type may be in you code, and in script portion you may have, implemented the "sendIt()" method.
But , I got through with this error, when I just changed the name of the JavaScript function say( sendItOne).
May be...name of the button and function (and value..) causing some problem.
Eric may have something to say here...


"Ignorance is bliss"
Mishra Anshu
Ranch Hand

Joined: Sep 16, 2003
Posts: 224
sorry to post so many times but...it happened because I seen that the reply was never updated. May be some problem with the server....sorry.............
[corrected]
[ April 12, 2004: Message edited by: Eric Pascarello ]
 
 
subject: error in document.form.submit();
 
Threads others viewed
Refresh Page
want to implement keylistener
Avoiding form resubmission
Reset button & Validation Error
object doesn't support this property or method
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture