arnyinc
06-07-2007, 07:37 PM
I have a main page and an iframe. I want to click a link on the main page, which submits a form contained in the iframe. This works in IE, but not Firefox. I don't receive any errors but it just ignores the form.submit() call.
Another note, it works in Firefox if I haven't called any other javascript functions prior to submitting.
mainpage.htm
<script language="javascript">
function saveItAll(){
document.forms[0].submit();
}
</script>
<a href="#" onclick="frames['MyIframe'].saveItAll()">
iframe.htm
<form name="test" action="process.php" method="post">
<input type="text" name="test1" id="test1">
</form>
Another note, it works in Firefox if I haven't called any other javascript functions prior to submitting.
mainpage.htm
<script language="javascript">
function saveItAll(){
document.forms[0].submit();
}
</script>
<a href="#" onclick="frames['MyIframe'].saveItAll()">
iframe.htm
<form name="test" action="process.php" method="post">
<input type="text" name="test1" id="test1">
</form>