internet-explorer

How to get value from contentEditable div in IE

I'm trying to create a very simple contentEditable div input. However, any way that I can think of to get the value of the input is not exactly what the user typed in IE because whitespace is collapsed. i.e. "hello world" becomes "hello world". But it's important to me that I be able to get the text as the user has typed it if at all...

set clipboard content in any browser

I need to set my user's clipboard when they trigger an event on my webpage. I realize each browser has a different way to do this, so do you know of a library or code snippet that will achieve this cross-browser? ...

Javascript code causes ActiveX warning

I have the following JavaScript code on my page: window.onload = function() { var best_photos = new Array ( "photo_1.jpg", "photo_2.jpg", //array of filenames goes here ) var k = Math.floor (Math.random() * best_photos.length); var image = document.createElement("img"); image.setAttribute("src", best_photos...

GWT's CssResource in IE

With GWT 2.0, I can't get CssResource to work properly in IE. I'm using NotStrict css resource, with some top level selectors like "html, body". It works well in webkit & gecko browsers, in IE, only a few CSS rules are injected, like 5% of my stylesheet. It's very hard do debug. ...

Why does Internet explorer encode link urls on the fly, and how to stop that behavior?

Hi, I have a really annoying problem with IE (all versions from what I can tell). Every link produced from the server side (may it be a string with an a-tag, hyperlink etc.) gets encoded on IE. Eg. http://www.some-domain.com/my document.pdf gets a correct encoding to: http://www.some-domain.com/my%20document.pdf However if I decide to d...

How to trigger script.onerror in Internet Explorer?

The onerror page on MSDN states that the onerror handler can be attached to a script element and that it "Fires when an error occurs during object loading.". For the purpose of unit tests, I am trying to get this onerror handler to fire, but could not find a suitable example. The following code triggers an error in Firefox, but no aler...

How to be able to preload jquery contents into hidden tabs for ie browser

The problems im facing is when I use something like jcarousellite inside tabs. It works fine in browsers other than ie. In ie, the carousel loads fine in the active tab, but in the inactive ones it doesnt preload. Basically when you click on a previously inactive tab, it displays nothing until you click outside the tab. I have narrowe...

Debugging Markup/JavaScript with IE 8's developers tools

I'm working on a site and it is constantly failing with the following in IE8: Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) Line: 0 Char: 0 Code: 0 What is the best way to troubleshoot this for IE8? IE7 compatibility mode does not solve the problem. Firefox gi...

How do I force IE to open a new Browser on custom hotkey?

I'm using AutoHotKey which is a program that lets me define my own hot keys. I have a hot key to open a link in IE. When I run the hot key command again the same window opens in the same browswer. I would like it to open in a new browser. I'm using "Run www.google.com", for example. Thanks. ...

Sandboxed Javascript Execution in an Internet Explorer Extension (BHO)

Firefox has the Sandbox and evalInSandbox(). Chrome has sandboxed execution in their content scripts (they call it isolated execution). I'm looking for the same thing in an IE browser extension. I can load a javascript file, then call evalScript(), but the code executes in the same environment as javascript that exists on the page. I ne...

Any reason why I am getting extra spacing underneath.. IE6-7?

Any reason why I am getting extra spacing underneath each input on my contact form? It only happens in ie6 and ie7 http://nhbs.bythepixel.com/contact.html ...

jquery compatibility problem

Why does the following work in firefox but not in IE? $("#bCompare").bind("click", function(e){ $("img[src='s1.gif']").each(function (i) { $("#cSelected").append("<div class='cHolder'></div>"); }); }); UPDATE 1: A commenter mentioned I haven't put in enough in...

CSS letter-spacing parts of a word

I want to do something like this in HTML: "T i t l e" The W3C recommends using the CSS property letter-spacing rather than inserting spaces. So, I can do the following: &quot;<span style="letter-spacing: 0.5em;">Title</span>&quot; which gives the following result: "T i t l e" (sometimes IE), "T i t l e " (all other browsers) The a...

Consistently sizing a TEXTAREA under IE, FF, Safari/Chrome

I have a TEXTAREA that needs to fit into a space whose size is not pre-determined (is a percentage of the screen size). I can get good results if FireFox by setting the regular CSS properties: #container { width: 70%; height:70% } #text_area { width: 100%; height: 100%; margin: 0; padding:0; } However in IE 6 and 7 I get different, od...

Why does my site look like garbage in IE?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Davey Whitney</title> <link rel="shortcut icon" href="http://daveywhitney.com/images/favicon.ico" /> <script src="js/jquery.js" type="text/javascript"><!--mce:0--><...

JAVASCRIPT: IE: outerHTML

Problem i encounter with outerHTML using IE Browser if i say: txt="Update Complete!"; msg = sub.appendChild(d.createElement("p")); msg.outerHTML = txt; It Works Fine: But if i say txt="1 Error:<ul><li>Some Error</li></ul>"; msg = sub.appendChild(d.createElement("p")); msg.outerHTML = txt; Gives me an error of: Message: Unknown r...

IE8 fails at displaying the page completly

When I open my project, Only the background and a image not found item are shown, while the page is 100% xhtml 1.1 strict. The developer tools show IE stops rendering after the SVG logo... Firefox works as it should. Damn You IE! ...

Acrobat and/or Reader Error ".tmp" when using fdf

I'm populating PDF's via FDF (& php) and for the most part it works fine however some users are getting either a "Acrobat cannot open "Acrxyz.tmp" (or a "Reader cannot open "xyz.tmp", in some cases). I've found info about possible causes surrounding: apache "MOD-Deflate", IE Cache and Volatile memory & "fdf_close" among other things.. ...

Disable annoying flashing in IE 6 / 7

Hello, I am currently working on a project for embedded WinXp. The application refresh a HTML Site every 5 Seconds. The problem is that I am using IE 6 / 7 by spec. But the browser have this annoying blinking and the customer dont like it. Chrome, Firefox and so on just refresh the page like a charm but IE dont. Is there a way to disab...

Javascript generated image maps don't link in any IE

In this static version, in any browser, you can click on the close area to jump to http://www.google.com. <html> <body> <div id="my_div"> <img usemap="#map" src="http://specialmedia.wnyc.org.s3.amazonaws.com/ads/open.jpg" /> <map name="map" id="map"> <area shape="rect" coords="900,0,1000,20"...