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
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
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