You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sudhakar G <Su...@mindtree.com> on 2004/04/19 14:37:12 UTC
Javascript Error
Hi All,
I have defined a form tag and assigned a form name like as follows..
<html:form method="POST" action="something.do">
<html:javascript formName="form1" staticJavascript="false" />
<input type="hidden" name="hiddenname">
<html:submit onClick="Next()"/>
the problem is:
when i submit the button. its giving error "object doesnot support
property or method" from java script
The javascript code:
function Next()
{
document.form1.hiddenname.value="hai";
document.form1.action ="something.do";
document.form1.submit();
}
Can any one tell me you it is behaving like this?.I have multiple forms
declared in that page was it a problem?.
Thanks & Regards
Sudhakar
Mindtree Consulting Private Ltd.
Bangalore.
Quote:-
Imagination is more important than knowledge.
--Albert Einstein
DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Javascript Error
Posted by bi...@tcs.com.
try this if this works ??
function Next()
{
document.form1.hiddenname.value="hai";
document.form1.method ="post";
document.form1.action ="something.do";
document.form1.submit();
}
Birendar Singh Waldiya
Tata Consultancy Services
Mailto: birendar.waldiya@tcs.com
Website: http://www.tcs.com
"Sudhakar G" <Su...@mindtree.com>
19-04-04 06:07 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To
<us...@struts.apache.org>
cc
Subject
Javascript Error
Hi All,
I have defined a form tag and assigned a form name like as follows..
<html:form method="POST" action="something.do">
<html:javascript formName="form1" staticJavascript="false" />
<input type="hidden" name="hiddenname">
<html:submit onClick="Next()"/>
the problem is:
when i submit the button. its giving error "object doesnot support
property or method" from java script
The javascript code:
function Next()
{
document.form1.hiddenname.value="hai";
document.form1.action ="something.do";
document.form1.submit();
}
Can any one tell me you it is behaving like this?.I have multiple forms
declared in that page was it a problem?.
Thanks & Regards
Sudhakar
Mindtree Consulting Private Ltd.
Bangalore.
Quote:-
Imagination is more important than knowledge.
--Albert Einstein
DISCLAIMER:
This message (including attachment if any) is confidential and may be
privileged. Before opening attachments please check them for viruses and
defects. MindTree Consulting Private Limited (MindTree) will not be
responsible for any viruses or defects or any forwarded attachments
emanating either from within MindTree or outside. If you have received
this message by mistake please notify the sender by return e-mail and
delete this message from your system. Any unauthorized use or
dissemination of this message in whole or in part is strictly prohibited.
Please note that e-mails are susceptible to change and MindTree shall not
be liable for any improper, untimely or incomplete transmission.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
ForwardSourceID:NT0000452A