views:

15

answers:

0

I've read countless articles on ways to implement a window load event handler and tried everyone. I can get this to work perfectly in every browser except IE (7 & 8). Can anyone see what might be the problem here?

1.

$addHandlers(window, {
        "load": this._StandardsMasterWindowLoadHandler,
        "resize": this._StandardsMasterWindowResizeHandler
    }, this);

2.

if (window.attachEvent) {
        window.attachEvent("onload", this._StandardsMasterWindowLoadHandler);
    } else {
        $addHandlers(window, { "load": this._StandardsMasterWindowLoadHandler }, this);
    }

3. (jQuery)

$(window).load(function () { standardsMaster.WindowLoad(); });