You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hirschmann, Bernhard" <Be...@t-systems.com> on 2003/02/11 13:36:28 UTC
setting a request parameter in JavaScript
Does somebody know how it is possible, to define a request parameter, while
submitting a form via the JavaScript command "submit()" ???
I'm doing a "submit()" in a event handler of a html:select box and have to
set also a request parameter.
Regards,
Bernhard
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: setting a request parameter in JavaScript
Posted by João Luz <Jo...@ist.utl.pt>.
Set the form field before you do the submit!
document."your form"."your field".value = "something";
document."your form".submit();
I hope this will work
Regards,
Joao
-----Original Message-----
From: Hirschmann, Bernhard [mailto:Bernhard.Hirschmann@t-systems.com]
Sent: terça-feira, 11 de Fevereiro de 2003 12:36
To: Struts User Mailing List (E-Mail)
Subject: setting a request parameter in JavaScript
Does somebody know how it is possible, to define a request parameter, while
submitting a form via the JavaScript command "submit()" ???
I'm doing a "submit()" in a event handler of a html:select box and have to
set also a request parameter.
Regards,
Bernhard
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org