struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arash Bijanzadeh <aras...@gmail.com>
Subject javascript html:fprm and getElementById
Date Sun, 26 Jun 2005 09:59:58 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message