File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Self Submit Form 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 "Self Submit Form" Watch "Self Submit Form" New topic

Self Submit Form

Preetish Madalia
Ranch Hand

Joined: Dec 12, 2007
Posts: 37
Does any one have the javascript that can self submit a form.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

The JavaScript to submit a form is just form.submit(). You call this from the event that triggers the form submit.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Bryce Martin
Ranch Hand

Joined: Nov 19, 2007
Posts: 269
Here is a self submitting form I wrote for a jsp. Its simple, clean, and it works flawlessly.

Salt and Pepper to taste.

Preetish Madalia
Ranch Hand

Joined: Dec 12, 2007
Posts: 37
Thanks Both..
I Got It.
I agree. Here's the link:
subject: Self Submit Form
It's not a secret anymore!