struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas.Hartm...@fiducia.de
Subject Re: Submitting forms with javascript in struts [*]
Date Thu, 14 Sep 2006 04:39:58 GMT
Hello!

Unfortunately the last posted solution didn't work either. That's why I'm using
another way now to get the form submitted via href and javascript. The
javascript function calls the existing submit-button and does a click:

document.myform.target="mytarget";
document.myform.myproperty.value="desired_value";
document.myform.myproperty.click();

That's the way it works.

Caveat: You have to take care, that the old value of the submit-button has to be
written back :-).



Kind regards,
Andreas Hartmann


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message