Jump to content

javascript:void(window.open...... opens two windows


jamey8420

Recommended Posts

I am using javascript:void(window.open('http://server1/test/test_update.php?matter="&Fields!matter.Value + "', '_blank', 'fullscreen=yes, scrollbars=auto'));" 

 

to launch a report from a SSRS 2008 report that is being viewed within an iFrame.  This is done in the Jump to URL.

 

 

<iframe name='myIframe' id='myIframe' src='http://sqlreports/ReportServer?Report&rs:Command=Render&rc:LinkTarget=_blank&rc:Stylesheet=my_htmlviewer' scrolling='auto' frameborder='0' width='100%' onload='resize_iframe()' ></iframe>

 

 

 

 

the resize_iframe() function just makes the iFrame full screen to whatever the window is made.

 

Before adding the @rc:LinkTarget=_blank to the iFrame, the links did not work.  Now, when I click on the link to launch the PHP page I get two windows that open.  

 

One opens and renders the page properly:  http://server1/test/test_update.php?matter=123456

while the other window opens with the "Internet Explorer cannot display the webpage" error with the following URL:  javascript:void(window.open('http://server1/test/test_update.php?matter=123456,%20_blank,%20fullscreen=yes,%20scrollbars=auto'));

 

 

 

I'm not quite sure what is causing these two windows to open up.  When I remove the @rc:LinkTarget=_blank from the iFrame, the links go back to not working.  I've also tried to remove the _blank for the Jump to URL.  

 

Any ideas/assistance would be greatly appreciated.

 

Thanks,

Jamey8420

 

I was able to come up with a solution.  In the Jump to URL in the SSRS 2008 report, I changed this:   javascript:void(window.open('http://server1/test/...ate.php?matter="&Fields!matter.Value + "', '_blank', 'fullscreen=yes, scrollbars=auto'));" 

 

to this:

 

=http://server1/test/test_update.php?matter="&Fields!matter.Value

 

 

Thanks for all that checked this question out.

 

jamey8420

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.