Hi,
Basically I have 2 frames called middle and bottom the middle frame holds a form and the bottom frame holds a javascript form submit buttom.
If I click on this it submits the form fine, however there is a javascript error checking procedure called validform() written into the middle page that is normally called when the submit button is on the same frame:
However whrn the js submit button is clicked in the bottom frame the validate() function isn't called, it just submits.
So my question is how can I keep the submit button in the seperate frame but call the function in the other frame as the for is submitted?
Basically I have 2 frames called middle and bottom the middle frame holds a form and the bottom frame holds a javascript form submit buttom.
Code:
<a href="javascript:parent.middle.document.faultform.submit()">Submit</a>
If I click on this it submits the form fine, however there is a javascript error checking procedure called validform() written into the middle page that is normally called when the submit button is on the same frame:
Code:
<form name=faultform onSubmit="return validform();" action="next_page.asp" method="post">
However whrn the js submit button is clicked in the bottom frame the validate() function isn't called, it just submits.
So my question is how can I keep the submit button in the seperate frame but call the function in the other frame as the for is submitted?