IE11 issue with Embedded PDF - internet-explorer-11

I have an HTML page that loads an embedded pdf on the page dynamically via an ajax call.
The below iframe code is pasted onto the Html page from the ajax method
<iframe src="${pdfpath}" width="1000" height="500">
It works well the first time it is called, however in subsequent calls there is an issue. The PDF loads fine, its the other contents on the page that disappears. This issue only happens in IE11, works fine in Chrome, Firefox and even IE9.
One thing odd I noticed is, when I open up the F12 developer tools, the remaining contents of the page appears again. Keep in mind that these contents have already been loaded the first time the page was loaded, the ajax method just inserts the iframe element onto the html page.
Below is a sample of how the ajax method inserts the data
$("#pdfDiv").empty().html(data);
Any help is appreciated on how to resolve this issue.
Thanks.

I was able to resolve this issue by replacing the iframe element with an object element
<object data="${pdfpath}" type="application/pdf">
<embed src="${pdfpath}" type="application/pdf" />
</object>
Thanks.

Since internet explorer 11 came up, everyone seems to have troubles when wanting to display or download pdf files, and me too. Personnaly, i just stopped using pdf. But, here is something for you, i don't know if it will help :
http://answers.microsoft.com/en-us/ie/forum/ie11-windows_7/internet-explorer-11-windows-7-pdf-files-will-not/3882b9cb-05ff-45de-acc6-0f6b8b752ed6?auth=1

Related

iPad: Can not move past first page of PDF

PDF's display in-line in my application. They work nicely on a desktop or laptop. On an iPad however, only the first page displays and there are no navigation bars so the user can not move beyond the first page.
I have tested both Chrome and Safari, with the same result.
Here's the code. (It's part of a vue.js component.)
<object :data="rawCvLink" type="application/pdf" width="868px" height="800px">
<p>There was a problem loading this CV.</p>
<p>Otherwise, try loading the CV <a :href="cvDocumentLink" target="_blank">here</a></p>
</object>

Unrelated content is displaying in my webpage

I am using Safari MAC system here, some content is displaying in my webpage which is not related to the webpage and I have not placed anything related to this content in the page. And also getting this content in only MAC-Safari browser.
Can someone tell me why I am getting unnecessary content in the webpage in MAC Safarienter image description here.
Thanks
Sateesh

Does Selenium/Protractor look for element in current loaded page?

Does Selenium/Protractor look for element in current loaded page, or look in the entire application when using the same Css Selector for same elements?
Eg:
Save Button on Customers Form class="save"
Save Button on Vendors Form class="save"
Protractor works by interacting with the browser (via selenium). Selenium uses browser drivers to interact with your page, and the browser only contains the code that it asked for (returned from the server, based on the type of request that was made).
So yes, it only looks for elements in the currently loaded page. It has no access to your entire application code.
Selenium looks for the element only on the loaded page. Not sure about Protractor though.

Fancybox and SharePoint 2010 - position of the iframe

Has anyone experienced problems with using fancybox one a SharePoint page?
I have followed all the instructions and the link opens the iframe with the content but the iframe is opening in one of the divs at the top of the page rather than in the middle of the page.
I have a feeling it is to do with the class of the div as it is called 'Wrapper'.
Does fancybox use 'wrapper' as an explicit value for where the iframe will open? Is this something that I can change as i can't change the div class (that is all set from central admin).
#JFK - thanks for the pointers - turned out to be an older JS file version. I changed that to the latest version and it works perfectly.

non-secure items in IE6

my site is https and so I had to go through it and make sure everything on the page was secure. This worked for every browser except IE6, which gives an error saying that the page contains both secure and non-secure items. I cannot find a non-secure item on this page and it is driving me mad! Can anyone spot whats causing it?
The site is http://preview.tinyurl.com/4kk5u7q
Thanks
When I try browsing the page (with Safari on OSX, in case it matters) I see that there are some resources which are described as about:blank. IIRC, IE6 thinks that that source is insecure. (I also get a syntax error in one of the inlined scripts.)
Agreed with Chris.
This bug affects both <FRAME> and <IFRAME> element.
IE checks whether the attribute "src" points to a realistic page or not. It won't pass even if "src" attribute is simply missing. Try the followings:
Just create a blank page named "blank.html" or whatever you want.
Then you can point "src" attribute to the blank page when <FRAME> or <IFRAME> element is being created.
Example as below:
<frame src="blank.html" id="foo" name="foo" >
This should do the job;)