Ie8 Enable Activex Iframe Scripts and Controls crashes

Asked

Viewed 90 times

0

I am testing a site created by me Internet Explorer 8. The Site Layout works when enabled Activex Scripts or controls... But when I do this activation the Iframes I have on the site stop working.

I have this css on iframe.

.iframe {
    width:100%;
    height:680px;
    border:none;
    overflow-x:hidden;
    overflow-Y:hidden;
}

1 answer

0

The problem can be reproduced by putting a style position: relative in the element html of the page to be included on iframe.

One of the solutions is to remove this style, but as sometimes you have no control over it, another solution is to add a style position: relative at the iframe.

iframe {
    position: relative;
}

Response obtained in the OS.


EDIT

Remember that when you open the PDF in the browser in a new tab, it uses some add-on to read the file, such as adobe Reader.

A very easy way to use a iframe to display the PDF is display it through Google Docs. You just need to change your src for something like this:

http://docs.google.com/viewer?url=urlDoPDF&embedded=true

Change the parameter url to your PDF url (localhost does not work, PDF has to be online). Remember to escape the fields using some function, such as the encodeURIComponent of the JS.

Example in Jsfiddle.

Answer obtained in another question in the OS.

  • My iframe only has how I put the question.

  • @Chrisadler Try to add the style I put in the answer.

  • placed and still not showing the contents of Iframe (PDF)

  • @Chrisadler Can you open the PDF directly in the browser? Paste the URL to the PDF into a new tab to check, as your browser may not be able to read.

  • I got in the way and he opens the PDF

  • He can’t show me the page.

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.