i have a form and in that i iframe
in the main form
[HTML]<form name='form1>
<iframe name="frame1" id="iframe1" src="iframe1.ph p" scrolling="yes" width="300%" frameborder="0" height="300"></iframe>
<input type="button" name="save" onclick="save() ;">
</form>
[/HTML]
[CODE=javascript]function save(){
window.frames['iframe1'].document.forms['iniframe'].add.click();
document.form1. submit();
}
[/CODE]
this code submits the frame data from main form and also main form data but
both the things are done at a time
i want that once iframe is form submitted and allthe queries performed to insert data on the iframe form then only main form data should be submitted
is there anyway to delay this
in the main form
[HTML]<form name='form1>
<iframe name="frame1" id="iframe1" src="iframe1.ph p" scrolling="yes" width="300%" frameborder="0" height="300"></iframe>
<input type="button" name="save" onclick="save() ;">
</form>
[/HTML]
[CODE=javascript]function save(){
window.frames['iframe1'].document.forms['iniframe'].add.click();
document.form1. submit();
}
[/CODE]
this code submits the frame data from main form and also main form data but
both the things are done at a time
i want that once iframe is form submitted and allthe queries performed to insert data on the iframe form then only main form data should be submitted
is there anyway to delay this
Comment