Avatar of dkim18

asked on 

IE doesn't Invoke servlet in iframe

Hi Experts,

I am trying to view PDF in IE using PDF.js(Mozilla) and IE gives different behavior compare to FF.
I debugged and found out that if I put path to another file that invokes servlet there instead of direct url in iframe, IE doesn't invoke servlet.
For example, this works in both IE and FF.
<iframe width="900" height="300" src="/abc/efg/pdfservlet" id="pdf_iframe"></iframe>
And this is web.xml
But this only works in FF not IE. IE just doesn't update PDF content.(The PDFServlet doesn't get invoked.)
<iframe width="900" height="300" src="/.../.../viewer.jsp" id="pdf_iframe"></iframe>

How do I fix this in IE10/IE11?

thanks in advance

Avatar of undefined
Last Comment

8/22/2022 - Mon