This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Struts and the fly likes textbox - onBlur, fire off a Struts action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "textbox - onBlur, fire off a Struts action" Watch "textbox - onBlur, fire off a Struts action" New topic
Author

textbox - onBlur, fire off a Struts action

Mervin Chan
Greenhorn

Joined: Dec 03, 2004
Posts: 24
I have a form. Previously, I submit the form using a button.

Like this:

<html:form action="someAction.do">

<input type="textArea" .... >
<html:submit value="Check" property="event">
...

Its supposed to fire someAction.do?event=Check when button is pressed.

What I want to do, is to write a javascript to fire off the event when the textbox is "onBlur".

How do i do this, when I have other buttons with other "event" values in the same form?
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
you need to have a name for the button then do document.MyForm.submitButtonName.click(); onBlur.


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
Mervin Chan
Greenhorn

Joined: Dec 03, 2004
Posts: 24
Thanks Alan. Worked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: textbox - onBlur, fire off a Struts action