This code works fine in Firefox window.opener.insertHTML but it doesnot work for IE. I just noticed that this code works even for IE9 but its not working for IE8
How can i get it to work for both the browsers?
The insertHTML command is for documents in design mode. It is a Mozilla invention and apparently isn't supported by IE.
Please try with pasteHTML insted of InsertHtml.
Related
https://parall.ax/products/jspdf#
http://mrrio.github.io/jsPDF/
Both resources ^ work fine in chrome and firefox, but the iframe generating the preview won't work in any version of IE for me. Anyone have any work-arounds?
The correct way I've found after dealing with both iframe and object/embed attempts, is through http://pdfobject.com/ .
Works in all IE v9+, Chrome, FireFox browsers.
I found an example and code how to copy text to clipboard with ZeroClipboard. However, it seems only to work under Firefox and does not work under Chrome/Chromium (39.0.2171.95 (64-bit)). What need to be change to get it to work under Chrome/Chromium as well?
The example you gave does not work on chrome, maybe the version of zeroclipboard is old. You can find the latest version from official website. It does work on chrome 39.0 on windows 7.
I have made a simple embed of slideshare on my site. However, on Internet Explorer, it keeps saying "Loading" and nothing appears. However, in Firefox its almost instant. Please try here using internet explorer.
Or is it just me? It makes use of Flash and Javascript.
What can the problem be?
Thanks all for any hellp
This page works fine in IE9 at least, and the content you say is broken was written in Flash. You might want to watch your HTTP traffic using Fiddler (www.fiddler2.com) and check for script errors using IE's developer tools (hit F12).
I've check it in Chrome, Firefox, IE6/7/8 and they all seem fine. I haven't checked it in Opera or Safari though.
see my question on title.
note that I understand how to debug javascript in any browsers (including IE 7++) other than IE 6.
IE Developer Toolbar really good to have for any developer.
IE Developer Toolbar
Microsoft script debugger can provide a bit of information.
But in general - it's a pain in * * *.
Last time figured out what's wrong by gradually commenting out javascript code. :D
You can also use firebug lite.
Personally I'm a big fan of FireBug Lite which is perfect for IE.
Firebug is an extension for Firefox, but what happens when you need to test your pages in Internet Explorer, Opera, and Safari?
The solution is Firebug Lite, a
JavaScript file you can insert into
your pages to simulate some Firebug
features in browsers that are not
named "Firefox".
Firebug Lite creates the variable
"firebug" and doesn't affect or
interfere with HTML elements that
aren't created by itself.
Firebug Lite has helped me out quite a lot =)
I'm using the code that netadictos posted to the question here. All I want to do is to display a warning when a user is navigating away from or closing a window/tab.
The code that netadictos posted seems to work fine in IE7, FF 3.0.5, Safari 3.2.1, and Chrome but it doesn't work in Opera v9.63. Does anyone know of way of doing the same thing in Opera?
Thx, Trev
Opera does not support window.onbeforeunload at the moment. It will be supported in some future version, but has not been a sufficiently high priority to get implemented as of Opera 11.
onbeforeunload is now supported in Opera 15 based on the WebKit engine but not in any prior versions based on Presto.
Have you tried this?
history.navigationMode = 'compatible';
Reference, found via this page
I haven't actually tried it myself, but it looks promising.
Mobile Safari (iPhone/iPad) also doesn't support onbeforeunload, and I strongly suspect it is not likely to.
For detecting back/forward navigation there may be workarounds e.g. see Is there an alternative method to use onbeforeunload in mobile safari?.