<?php
$url="http://www.tnpsc.gov.in/Notifications/257_not_eng_grp2k11.pdf";
$url_test=urlencode($url);
?>
<iframe style="border-style: none;" src="http://docs.google.com/viewer?url=<?php echo $url_test; ?>&embedded=true" height="500" width="500"></iframe>
iframe displays the pdf content. but the code doesnt work with ie6.
ie6 displays nothing inside iframe.
How to display pdf content using google doc in ie6
If you really must use IE6, try installing the Google Chrome Frame
It essentially embeds Google Chrome into IE.
IE6 is not supported by Google Docs
See the "System requirements" for more details:
http://docs.google.com/support/bin/answer.py?hl=en&answer=37560
Not even Microsoft supports IE6 any longer for a lot of reasons. So you should migrate to a supported Browser as soon as possible
Related
I have an iframe with a src attribute set to a https pdf link. On firefox (99.0.1), my iframe displays correctly the pdf, but not on google chrome (101.0.4951.54). I have no extension installed on my google chrome, and found no errors or any logs in the console.
Chrome gives me a grey iframe like that:
(in english it says "This page has been blocked by Chrome")
I've went into the console, inside the network tab and here is the only useful information I've found:
I had the same issue but only on CodePen, which is displaying everything in an iframe, which was probably causing problems.
Once I created my own html file, everything was working correctly.
Both codes work correctly:
<embed
class="pdfobject"
type="application/pdf"
title="Embedded PDF"
src="https://africau.edu/images/default/sample.pdf"
style="overflow: auto; width: 100%; height: 100%;">
and
<iframe src="https://africau.edu/images/default/sample.pdf" width="500" height="375" />
Alternatively, you can used PDFObject package - "An open-source standards-friendly JavaScript utility for embedding PDF files into HTML documents."
https://pdfobject.com/
Tried this:
Download Your Foo
Chrome unfortunatelly completely ignores the download attribute.
What can I do? Ideally to make it cross-browser...
Thanks
Have you tested this on any other web browsers.
According to w3schools here, it is an HTML5 attribute and internet explorer and safari do not support it. So, if you are looking for cross-browser, this probably isn't the best solution.
Also the link you have composed is wrong, if you downloaded google.com it points to index.html(I checked) .
I tried <a href="http://www.google.com" download>Here</a> and opened it in the latest chrome and it downloaded index.html. So if you need google chrome compatibility do a download attribute with "[your choice].html".
If you would like cross-browser compatibility I suggest you use php to change the headers then echo google's source. If you are unfamiliar with php go to
here
I am embedding google map in my page. While it works fine on chrome and FF, it doesn't display in IE. I looked up extensively and tried changing the mode from embed to View. That didn't work either.
<iframe width="95%" height="460px" frameborder="0" style="border: 0;" src="https://www.google.com/maps/embed/v1/place?key=MYAPIKEYHERE
&q=120+S+Street+Name,+City,+CA+93117"> </iframe>
I looked on Google APi site to see if its not supported for IE. There was nothing mentioned about that there either.
Any thoughts?
Apparently this is a known issue, caused when the page is running compatibility mode.
https://code.google.com/p/gmaps-api-issues/issues/detail?id=7675
According to Google, they are actively working on a fix.
Since the latest Google maps update, I'm unable to print the map via my chrome browser.
If I try to print it with firefox, and have a look at the preview, the map shows up.
My code:
<iframe width="600" height="300" marginheight="0"
src="http://maps.google.com/maps?ie=UTF8&q=loc:{address} {number}#{latitude},{longitude}&z=14&output=embed&iwloc=near"
frameborder="0" marginwidth="0" scrolling="no">
</iframe>
It displays the following (in chrome):
And if I try to print it, I get:
While in Firefox and Safari, it shows up perfect.
I assume that this is a chrome issue? (I've tested it on different chrome browsers, on different computers, both MAC and PC)
Or is there something I'm missing, or that I should add with the new maps.
Small detail, if I Go to the developer site of google maps (https://developers.google.com/maps/documentation/embed/guide) and I try to print it from there, it won't print either. Which I think is strange, since both maps and chrome are build by Google.
Does anybody else have this issue, or is it just me? And if it is just me, what am I doing wrong?
(My chrome version: 33.0.1750.152, working on OSX 10.9.2)
I have read and studied too much about this, and unfortunatelly there is no solution to this, to print the iframe insertion using Chrome. I also don´t know the reasons, so I decided to change, to improve! :)
I easyly changed my html codes to use the Google API, then it becomes to print the map again.
In my searches around the web, I found and started to use a very simple to implement jQuery plugin for Google Maps, called $goMAP(); Cons: you need to have a little bit of jQuery and JSON knowledge.
In the Example Page you can find a lot of implementations, I know one of it will fits to you.
And If you need more technical information, you can find whatelse you need in the Google Maps API.
These are some complementary URLs I´ve read before to adopt the solution:
https://code.google.com/p/chromium/issues/detail?id=353937
http://themeforest.net/forums/thread/google-maps-iframe-issue-in-chrome/110324
I hope not have disapointed you, but helped instead :)
Daniel
I have recently been having same problem but discovered that when Chrome's "Strict site isolation" feature is enabled the map iframes do not print, disable the feature and they all work
See:
chrome://flags/
#enable-site-per-process
I was wondering why this code
<video src="http://brexes.com/Images%20and%20Videos/GamilaSecretVideo.mp4" controls></video>
works on every browser instead google chrome?!
Is there any way to get it work on all the browser containing google chrome?
Code here: http://jsfiddle.net/TQ4d4/
Just try to open it in google chrome and different browsers.
Oh it worked for me now, I just had to close the browser and re-open it