RPrinceton
Programmer
Hi All,
I am trying to use Javascript to submit a form as opposed to the button doing the submit.
Below is the code used to do this. I have included notes
as to what happens when the button is clicked. I hope it is clear. I am testing in both Internet Explorer and Firefox.
I am not sure if its a version thing. Any help will be greatly appriciated.
Thx in advance.
Regards.
RPrinceton
HTML:
<td width=100% align=center colspan=4><input type="button" value="Validate" onclick="formSubmit()" name="submit"></td>
Javascript:
function formSubmit()
{
document.getElementById("ThisForm").submit(); <- in IE says error on page, in FF no error but submit does not take place
}
function formSubmit()
{
document.getElementById("ThisForm").submit; <- in IE says error on the page, in FF no error but submit does not take place says
}
I am trying to use Javascript to submit a form as opposed to the button doing the submit.
Below is the code used to do this. I have included notes
as to what happens when the button is clicked. I hope it is clear. I am testing in both Internet Explorer and Firefox.
I am not sure if its a version thing. Any help will be greatly appriciated.
Thx in advance.
Regards.
RPrinceton
HTML:
<td width=100% align=center colspan=4><input type="button" value="Validate" onclick="formSubmit()" name="submit"></td>
Javascript:
function formSubmit()
{
document.getElementById("ThisForm").submit(); <- in IE says error on page, in FF no error but submit does not take place
}
function formSubmit()
{
document.getElementById("ThisForm").submit; <- in IE says error on the page, in FF no error but submit does not take place says
}