By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,137 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

Problem opening new window

P: n/a
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?RequestTim eout=700";
var mywin;
if ( !mywin || mywin.closed )
{
mywin =
window.open(mycgi,'view_report','width='+mywidth+' ,height=425,top=50,left=0,scrollbars=yes,toolbar=y es,resizable=yes');}
}
document.report.target = 'view_report';
document.report.method = 'post';
document.report.submit();
mywin.focus();

Any help is appreciated.

Mike

Sep 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
It seems hating that it is being posted to. If I refresh the page it
displays.

Sep 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.