IE tricks

From Emprise Wiki
Revision as of 14:57, 28 March 2013 by Thawley (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

List of IE tricks

            Putting a div over a flash movie in IE

The Ultimate IE Hack Guide
Conditional Compilation of JScript/ JavaScript in IE


Loading Firebug Lite for IE7

Open a url in IE 7 and then apply the following bookmarklet.

javascript:var firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug);


Don't use the native JSON object

JSON.parse and JSON.stringify DO NOT exist in any IE older than IE8.

Use the Emprise Utilities methods

emprise.utilities.evalJSON(str); // Equivalent to JSON.parse()
emprise.utilities.stringifyJSON(obj); // Equivalent to JSON.stringify()