btw: Cant remember whether your own js functions will become properties of the form or the document object. Probably depends on where you declare it? Anyhow you may also want to rename your submit function to something like doSubmit to make sure its not shadowing the real one.(Though if that was the case Id have expected an infinite loop so its probably not your submit method causing the problem but a button or field as mentioned above.)
sachin wrote:
hi all ,
i have a Struts form defined like ..
<html:form styleId="paraFrm" action="branchMasterViewAction">
and i am tring to submit this form with javascript function like .. <script> function submit() { frm=document.getElementById("paraFrm"); frm.submit(); } </script>
but it gives error that object does not support this property or method .. i tried it with document.forms[0].submit() , but not helped ..
Plz tell me any solution to this ..
Thanks in advance
Regards, Sachin Hegde Paradyne Infotech Limited , Mumbai 09324546711
--------------------------------------------------------------------- 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]