M
mike
I have a page and when the user clicks a button I want to open up a new
window that has an iframe in it and I want to direct the page to submit
to that iframe.
My code looks like:
var mywin;
mywin =
window.open('','view_report','width='+mywidth+',height=425,top=50,left=0,scrollbars=yes,toolbar=yes,resizable=yes');
mywin.document.write("<html><title>my report</title><body>");
mywin.document.write("<iframe src='tmp.cfm' name='miketest'
id='miketest' height='100%' width='100%'></iframe>");
mywin.document.write("</body></html>");
document.report.method = 'post';
var post_script = mywin.document.getElementById('miketest');
document.report.target = post_script;
document.report.submit();
This does not work but I think you get the jest of it.
Any help is appreciated.
Mike
window that has an iframe in it and I want to direct the page to submit
to that iframe.
My code looks like:
var mywin;
mywin =
window.open('','view_report','width='+mywidth+',height=425,top=50,left=0,scrollbars=yes,toolbar=yes,resizable=yes');
mywin.document.write("<html><title>my report</title><body>");
mywin.document.write("<iframe src='tmp.cfm' name='miketest'
id='miketest' height='100%' width='100%'></iframe>");
mywin.document.write("</body></html>");
document.report.method = 'post';
var post_script = mywin.document.getElementById('miketest');
document.report.target = post_script;
document.report.submit();
This does not work but I think you get the jest of it.
Any help is appreciated.
Mike