Problem opening new window

M

mike

I think I have a js problem here and I must have some param set wrong.

I have a form on a page and when the form is submitted it should open a
new window and post the content to it.

When the script being posted to is a html page, then this works fine,
but when the script being posted to produces an svg graphic, then there
is no 'view source'. Its almost as though the opened page headers are
already set for html and doesn't like the svg xml schema.

Here is the code:

document.report.action="graphic_rpt.cfm?RequestTimeout=700";
var mywin;
if ( !mywin || mywin.closed )
{
mywin =
window.open(mycgi,'view_report','width='+mywidth+',height=425,top=50,left=0,scrollbars=yes,toolbar=yes,resizable=yes');}
}
document.report.target = 'view_report';
document.report.method = 'post';
document.report.submit();
mywin.focus();

Any help is appreciated.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top