Hello,
I have following code snippet:
-
...
-
function submitForm() {
-
document.forms[0].submit();
-
}
-
..
-
When I call this function when pressing "Add" button, everything works fine:
-
<form name="svnlink" method="post">
-
...
-
<input type="button" value="Add" name="btn" onclick="submitForm();">
I need to call this submitForm() function from another javascript file but it doesn't work in IE6, it works correctly in IE7 and Firefox. What I need is to submit this form when user clicks one of items, which are dynamically created in different *.js file (I use there code: <a ... onclick="javascript
:submitForm();>item_name</a>). I don't know how to make submit() function work in IE6.
Thanks for answer