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 Forcing the form submission 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 "Forcing the form submission" Watch "Forcing the form submission" New topic
Author

Forcing the form submission

Disha Sharma
Greenhorn

Joined: Nov 15, 2011
Posts: 3
Hi,

I have a requirement in which I have to save the details of a text box without actually submitting the form(without clicking on submit button) and the details should be saved in a session bean's property.

Any suggesstions ?
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1473
    
    6

May be you can use the onKeyPress event in the text field.


Swastik
Disha Sharma
Greenhorn

Joined: Nov 15, 2011
Posts: 3
From the reply I understand that on key press event, I can probably call method in a java script.
But not able to understand on how can I save the value in the text box in a Session bean's property.
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1473
    
    6

From that java script function, you can always do the form submission.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Forcing the form submission