Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

page is not loading inside the iframe in IE11

Tags:

html

jquery

php

I have following code. I wanted to load the page inside an iframe. But it is showing only loader into an iframe. i have this problem only in IE 11. In all the browser it is working fine.

<iframe src="https://docs.google.com/viewer?url=http://localhost/test_energy/img/Sample.pdf&embedded=true" width="570" height="300" style="border: none;">
</iframe>
like image 710
Ayesha Avatar asked Feb 11 '14 06:02

Ayesha


People also ask

Why is iframe not displaying content?

If the primary domain for your website is secure with SSL (https://) but the source URL for your Iframe is not, your website will display an error, or simply not display the content. To fix this, you'll need to update the Source URL for your Iframe content with the secure (https://) version.

Do iFrames work in IE?

Attachments: Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can we load HTML in iframe?

The HTML <iframe> tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document.


1 Answers

try:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11"/> 
like image 195
hizbul25 Avatar answered Oct 13 '22 21:10

hizbul25