0

I have an iframe where I would like to display a pdf. I got it to work with chrome and FF but not with IE. Here is how I do it:

<iframe src="+ URL.createObjectURL(pdfBlob) +"></iframe>

What's wrong with IE and how can I fix that? I don't get any error (I'm using IE 11)...

Nate
  • 7,606
  • 23
  • 72
  • 124
  • Did u find a solution for this issue? – sdd Sep 20 '16 at 17:21
  • @sdd I think IE doesn't allow to do this for securtity reasons (but I can be wrong, it's so long I can't exactly remember my conclusion)...anyway I gave up on iframe – Nate Sep 21 '16 at 08:43

1 Answers1

0

Have you tried setting a height and width?
<iframe src="+ URL.createObjectURL(pdfBlob) +" width="960px" height="900px"></iframe>

**

or have you had a look at this or this?

css/some.css
iframe {
    position: relative;
}

might help.

i can't really think of how it could be problem with the src, since you indicate that it works in other browsers. so it's probably about how the wonderful ie is 'displaying' an iframe.

Community
  • 1
  • 1
The F
  • 3,647
  • 1
  • 20
  • 28