0

I am using a onclick event on my page.The functionality is to open a new page which should have the staments on that particular dated PDF when clicked on it.

<h:link onclick="pushPost(#{statement.id});return false;"> and am using java script to call the onclick event which is working perfeclty in mozilla but a blank page is appearing on IE

function pushPost(stmtNo){
    push = window.open("StatementContent.xhtml?statement="+stmtNo, "push", 
            "directories=0,height=900,width=850,top=20,left=20,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no");
    push.focus();
}
Felix Kling
  • 795,719
  • 175
  • 1,089
  • 1,143
user1046671
  • 201
  • 3
  • 13
  • What IE version is being used? There are issues with IE8 and below with static content files. The cache-control headers on the page that returns the .PDF more then likely need modified. I would say there is no problems with the code above but more likely a change will need made on StatementContent.xhtml – Etch Feb 24 '12 at 16:26
  • firstly thanks for the reply.currenlty we are using IE8,so cache-control headers on the page that returns.PDF need to be modified on the page? – user1046671 Feb 24 '12 at 16:35

1 Answers1

0

Check out this link. I fought this same problem as you did, however it was a .aspx file not an .xhtml file. You will need to take the same considerations with the HTTP cache-control headers. If you look at it from that perspective it should solve your problem.

Community
  • 1
  • 1
Etch
  • 3,044
  • 25
  • 31