S
superfreaker
Ok, I've been at this two days now and have scoured the group for help
to no avail.
I have a main web page that contains a form and an iframe. I need to
submit the form and set the iframe source file in one action and have
it work with both IE and other browsers. So far, i have not had any
luck.
Form name "fmUpload", frame name, "progframe".
At one point i tried doing both in one function on the main page:
function startupload() {
document.fmUpload.action="http://newurl.com/form.html";
var iframe = document.getElementById("progframe");
iframe.src = "http://newurl.com/iframe.html";
}
Did not work in both IE and FF.
Then i tried doing the set iframe src on the form button click, then
the new iframe page submit the parent form using a body onLoad. That
did not work in IE with:
function subForm() {
parent.document.forms.fmUpload.submit();
}
</script>
<body onLoad=subForm()>
This really hurts. If anyone can help me with a simple explanation, i
would appreciate it. Code would be much appreciated!
to no avail.
I have a main web page that contains a form and an iframe. I need to
submit the form and set the iframe source file in one action and have
it work with both IE and other browsers. So far, i have not had any
luck.
Form name "fmUpload", frame name, "progframe".
At one point i tried doing both in one function on the main page:
function startupload() {
document.fmUpload.action="http://newurl.com/form.html";
var iframe = document.getElementById("progframe");
iframe.src = "http://newurl.com/iframe.html";
}
Did not work in both IE and FF.
Then i tried doing the set iframe src on the form button click, then
the new iframe page submit the parent form using a body onLoad. That
did not work in IE with:
function subForm() {
parent.document.forms.fmUpload.submit();
}
</script>
<body onLoad=subForm()>
This really hurts. If anyone can help me with a simple explanation, i
would appreciate it. Code would be much appreciated!