Placeholder in IE9

HTML5 Placeholder jQuery Plugin – by Mathias Bynens (a collaborator on HTML5 Boilerplate and jsPerf) https://github.com/mathiasbynens/jquery-placeholder Demo & Examples http://mathiasbynens.be/demo/placeholder p.s I have used this plugin many times and it works a treat. Also it doesn’t submit the placeholder text as a value when you submit your form (… a real pain I found with … Read more

addEventListener in Internet Explorer

addEventListener is the proper DOM method to use for attaching event handlers. Internet Explorer (up to version 8) used an alternate attachEvent method. Internet Explorer 9 supports the proper addEventListener method. The following should be an attempt to write a cross-browser addEvent function. function addEvent(evnt, elem, func) { if (elem.addEventListener) // W3C DOM elem.addEventListener(evnt,func,false); else … Read more

Will the IE9 WebBrowser Control Support all of IE9’s features, including SVG?

WebBrowser control will use whatever version of IE you have installed, but for compatibility reasons it will render pages in IE7 Standards mode by default. If you want to take advantage of new IE9 features, you should add the meta tag <meta http-equiv=”X-UA-Compatible” content=”IE=9″ > inside the <head> tag of your HTML page. This meta … Read more

Why does JavaScript only work after opening developer tools in IE once?

It sounds like you might have some debugging code in your javascript. The experience you’re describing is typical of code which contain console.log() or any of the other console functionality. The console object is only activated when the Dev Toolbar is opened. Prior to that, calling the console object will result in it being reported … Read more