Using Google Document viewer on a ASP classic website.
The problem I have is that it doesn't display the document in Internet Explorer 9. I haven't seen anyone solve this problem from a developers perspective.
The problem I assume has to do with IE9 security settings, but my IE8 renders it fine.
Is there any way to solve this without getting the user to do something?
It works fine in Firefox and Chrome.
My embeded viewer looks like this:
<iframe src="http://docs.google.com/viewer?url=http%3A%2F%2F<%=linkToDoc%>&embedded=true" width="663" height="938" style="border: none;">
as i had a quick view on google doc viewer. it has no downloadable plugin to patch into your script. there are two ways of using it. use <%=link from source(db or request function)%> to get the file and use an iframe
<iframe src="http://docs.google.com/gview?url=(LINKforDOCUMENT)&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>
or you could use this plugin
Google Docs Viewer - plugin for Jquery .
it both seems to work in all browsers.
Related
Ive got a very basic WordPress website using the new 2017 theme and I'm trying to embed a simple video. The video is on OneDrive, but it should be the same as YouTube or any other source, and I can play the video fine in a plain HTML page.
When I insert the following HTML iframe in my post:
<iframe src="https://onedrive.live.com/embed?cid=3F3E866DF352275A&resid=3F3E866DF352275A%21106&authkey=ADg-86mHmhzI3mw" width="320" height="180" frameborder="0" scrolling="no" allowfullscreen></iframe>
It shows a small blank frame for a few seconds when I preview the post, then it jumps to the onedrive embedded link showing the video full screen, so you cant see the post.
I tried using a plugin too and that didn't work either, somehow it had the same problem. I was using FV player which seems to be very popular but when I try to embed this video it says there "Video Issues". I know there's nothing wrong with the video because, again, I can insert this iframe in a plain HTML page and it works no problem. Only when I embed the iframe in a wordpress post does it pop out into the onedrive link and go full screen.
Any suggestions? This should just work and I don't know what I'm missing.
src="https://onedrive.live.com/embed?cid=3F3E866DF352275A&resid=3F3E866DF352275A%21106&authkey=ADg-86mHmhzI3mw"
replace the embed with download. and use normal video tag instead of iframe.
src="https://onedrive.live.com/download?cid=3F3E866DF352275A&resid=3F3E866DF352275A%21106&authkey=ADg-86mHmhzI3mw"
I'm currently trying to create an App for SharePoint that renders a login page within the SharePoint Site. This works perfectly fine. However, this login page is expecting the user to login and when I try to do it in Chrome, it works fine. However when I try and do it in Internet Explorer, the screen just flashes and it clears out the user/pass fields. If I try bad credentials, I get the expected result.
I noticed that Visual Studio has a control called AppIFrame but when I try and add it to the Solution, nothing happens. In addition, there is literally ZERO documentation on this control, how it works, or what it does. I'm trying to use it under a heavy assumption that it might solve my problem but if anyone can provide me with any sort of information on the AppIFrame control, i'd LOVE it!
Below is the code I'm using which works in Chrome, but not IE:
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
<iframe src="https://myLoginPage.com" height="800px" width="100%">
</iframe>
</asp:Content>
I've read a bunch of threads about Platform for Privacy Preferences (P3P) but I'm not confident that's what's going on here as most people in those threads have just identified it as bug and has been working since IE 8 (I'm using IE 11).
Thanks in advance for any helpful input.
The site I am working on uses Facebook Javascript SDK, as described here https://developers.facebook.com/docs/reference/javascript/, to allow users to login. The site is an ASP.NET MVC site.
It works on latest versions of Chrome, Firefox, Safari and also IE9.
However in windows 8 consumer preview using IE10 (in normal and compatibility mode) when logging into Facebook the popup window goes white and doesn't close. If close manually and refresh the original page I see that I am logged in.
I have looked through all other SO questions and searched the web. I have tried all the solutions and none of them work.
I am using the channelUrl correctly and it works in the other browsers. I also tried the IE10 bug fix here http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx
There really isn't much different from my code and the Facebook examples. So I think there is either a problem with IE10 or the Facebook API when using IE10.
Has anyone had similar problems and found a solution?
The problem was in the HTML. The meta tag for http-equiv was set to
<meta http-equiv="X-UA-Compatible" value="IE=8">
This causes IE10 to display the web page in IE8 mode. Changed this to 9 as it was meant to be and the Facebook popup box disapears.
I am looking for a fix for styling a webpage that so that a webpage on google chrome, will look the same as it does on firefox, meaning, is there some syntax in css to make all of the web browsers look the same. does this exist (I would also like one for I.E., and any other web browser if it exists if it exists)
Google Chrome uses a different rendering engine than Internet Explorer/Firefox, so may display web pages differently. Apple Safari uses the same rendering engine as Google Chrome (WebKit) and should display pages the same way.
If your site isn't rendering properly in any browser, make sure your HTML and CSS are valid by testing them at http://validator.w3.org/.
If your site doesn't render properly in Google Chrome or Apple Safari, file a bug at webkit.org as described at http://webkit.org/quality/reporting.html.
If your site renders properly in Apple Safari but not in Google Chrome, please file a bug against Google Chrome at http://code.google.com/p/chromium/issues/list.
How can I test my website in Google Chrome?
There are several tools to help you test your website in Google Chrome:
Web Inspector
Right-click on any component on a web page to launch the web inspector. You'll be able to see the elements and resources associated with the component on which you clicked, including a hierarchy view of the DOM and a JavaScript console.
Task Manager
Select the Page menu icon, then Developer > Task Manager (or press Shift+Esc). The task manager shows all running Google Chrome processes, and the resources that they're using (memory, CPU, and network).
JavaScript Debugger
Select the Page menu icon, then Developer > Debug JavaScript. This launches a JavaScript debugger that can be used to attach to existing processes.
I found the Answer. Being that I am using drupal, there is a built in IE fix for the theme that I am using (fusion) that creates separate css files (ie7.css, ie8.css, etc). using these, I can adjust what I need for IE specifically.
Most layout problems with decent browsers are cause by invalid HTML, invalid CSS, or misunderstanding what a particular piece of CSS is actually supposed to do.
In general, when I see a difference between FF and Chrome, it is because Chrome is doing the proper thing and FF just happens to be rendering some invalid CSS fine. 99% of the time, I can fix the CSS and get FF and Chrome to render the same.
The remaining times, I typically browser sniff and use jQuery to fix the problem.
My application's JavaScript is working on Firefox and IE but it is not working in Google Chrome. Is it problem of enable javascript in Google chrome? or I must put any code in javascript for getting XMLHttpRequest Object of Google chrome browser.
If the code works in two other browsers but not in Chrome, you need to look at the code for your "ajaxFunction" because that is apparently what is giving Chrome a headache. As #Artem mentioned, Ctrl+Shift+J will bring up the Javascript Console (switch it to the "Scripts" tab) and you can easily examine any errors.
Google Chrome's Javascript engine interprets JS very similarly to the other browsers mentioned. What is it that doesn't appear to be working?
There is a Javascript Console in Chrome, press Ctrl+Shift+J to open it and check for errors.
Is this question related to this problem? Problem could be that .NET thinks you're using the Safari Browser instead of Chrome...