Re: [Wikitech-l] ResourceLoader and wikibits addHandler in IE

2012-01-03 Thread Daniel Barrett
Roan Kattouw wrote: You probably need to do window.addHandler( .. ) instead? Alternatively, use jQuery to bind events. If you just want to do something upon document ready, use: jQuery( document ).ready( function() { ... } ); or even jQuery( function() { ... } ); Thanks Roan. I used your jQuery

[Wikitech-l] ResourceLoader and wikibits addHandler in IE

2011-12-22 Thread Daniel Barrett
The following JavaScript works fine in MediaWiki 1.17.1, when placed into a ResourceLoader-loaded module, producing an alert box: addHandler(window, 'load', function() { alert('hello'); }); However, the same code does not seem to run in MediaWiki 1.18.0 in Internet Explorer 8: no alert box is

Re: [Wikitech-l] ResourceLoader and wikibits addHandler in IE

2011-12-22 Thread Roan Kattouw
On Thu, Dec 22, 2011 at 7:28 PM, Daniel Barrett d...@vistaprint.com wrote: The following JavaScript works fine in MediaWiki 1.17.1, when placed into a ResourceLoader-loaded module, producing an alert box: addHandler(window, 'load', function() {  alert('hello'); }); However, the same code