0 Replies Latest reply on May 8, 2014 10:56 AM by Craig S

    Javascript window.open in APEX 4.2 on IE8

    Craig S

      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!