Forgot to add that "myform" should be the form name!
Nitesh
----- Original Message -----
From: "Nitesh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, June 27, 2005 10:23 AM
Subject: Re: javascript html:fprm and getElementById
Try out...
function setParam(mode)
{
document.forms["myform"].action ="<%=(String)
request.getAttribute("origin")%"+ mode+ ".do";
document.forms[0].submit();
}
HTH
Nitesh
----- Original Message -----
Hi,
I need to change the action of my form on the fly. I use the following
javascript:
function setParam(mode)
{
document.getElementById("myform").action ="<%=(String)
request.getAttribute("origin")%"
+ mode+ ".do";
document.forms[0].submit();
}
and my form is :
<html:form action="<%=(String) request.getAttribute("origin")%"
styleId="myform"
It works perfect under mozilla but not IE. I think the problem is that IE
looks for Id in the name field of form and he couln't find it.
Could anyone help me?
Regards
ARash
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]