Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Javascript window.open in APEX 4.2 on IE8

Craig SMay 8 2014

I have an interactive report in apex with a custom PDF button on it.  The button submits the page, which sets some hidden fields when reloading. On page load there is also a dynamic action which fires javascript code: javascript:var x=window.open(('&REF_LINK.')+'Report.pdf?piReportID='+('&P37_HIDDEN_PDF.')+'&pvCacheCopy=T','_blank');  -This link is calling wpg_docload.download_file(l_lob); to display the download dialogue.

What is supposed to happen when the pdf button is pressed is that the page reloads and then a popup window opens with the 'download file' dialogue box.  This worked in apex 4.0 in all browsers and currently works on apex 4.2 in Chrome. In internet explorer (8) the popup is displayed briefly but then disappears without the download file dialogue.

If I hold CTRL and click the link it works fine, even in IE8.

If the link is changed to 'http://www.google.com' then the popup opens correctly and stays open.


In fiddler the URL of the pdf is correct.

Any ideas what I might be doing wrong?

Thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2014
Added on May 8 2014
0 comments
344 views