try this if this works ??
function Next()
{
document.form1.hiddenname.value="hai";
document.form1.method ="post";
document.form1.action =""
document.form1.submit();
}
Birendar Singh Waldiya
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
"Sudhakar G"
<[EMAIL PROTECTED]>
19-04-04 06:07 PM
|
|
Hi All,
I have defined a form tag and assigned a form name like as follows..
<html:form method="POST" action=""> <html:_javascript_ formName="form1" staticJavascript="false" />
<input type="hidden" name="hiddenname">
<html:submit >
the problem is:
when i submit the button. its giving error "object doesnot support
property or method" from _javascript_
The _javascript_ code:
function Next()
{
document.form1.hiddenname.value="hai";
document.form1.action =""
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ForwardSourceID:NT0000452A
DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]