0

I am facing a very frustrating problem and I am right now clueless on how to solve it. I have a simple iframe inside a div in a jsp. All I am doing is submitting a form with the target as this iframe which is displaying a PDF (the form submission returns a PDF in the response) and then displaying it in a popup (Dojo dialog). Everything works fine on Chrome and even on IE8 on Windows Vista. The problem is that in IE8 on Windows 7 the popup is shown and I know that the PDF is generated but the iframe displays nothing. What can be the problem?

bluish
  • 26,356
  • 27
  • 122
  • 180
Abby
  • 403
  • 2
  • 6
  • 18
  • 2
    Note that IE uses `name` attribute to resolve target, not `id` – Tommi Jul 04 '13 at 09:27
  • Yes. I know that. I do use the name attribute and it does work on IE 8 on Windows vista. – Abby Jul 04 '13 at 09:37
  • I don't believe it's OS issue, there must be something else. Can you set up demo? – Tommi Jul 04 '13 at 09:46
  • Is this problem related to the use of the `target`attribute at all? Please verify that first by removing the target and letting the form response just being displayed in the same window. – CBroe Jul 04 '13 at 10:13
  • yes it seems so. In a different page, if I directly open the pdf usinf iframe source, it does show it very well. Only where I use the target attribute, I have the problem – Abby Jul 04 '13 at 12:30
  • Do you have a repro URL? Which PDF plugin do you have installed? Is all of this in the Internet Zone (or is it on your Intranet?) – EricLaw Jul 04 '13 at 18:01
  • ok... The same code works on the browser if I access the server with http. But the moment I use SSL, I don't see the pdf in the iframe. Maybe its something to do with the response headers. Any idea? – Abby Jul 05 '13 at 09:35

1 Answers1

0

Ahh... Finally.....I solved the problem....... Got the idea from the following : Can't display PDF from HTTPS in IE 8 (on 64-bit Vista)

Just set pragma, cache in the header and it works..... Phewwww....

Community
  • 1
  • 1
Abby
  • 403
  • 2
  • 6
  • 18