Site breaks in IE6 on "Unexpected call to method or property access" error

1.4k Views Asked by At

http://farmball.com/boston

The line that 'causes' the error:

IEPNGFix.process(element, 0);

Full code: http://pastie.org/648568

Note: I tried searching the phrase and IEPNGFix in Google, no luck. Also tried the MIRC Javascript chatroom before coming here.

What do I need to change?

3

There are 3 best solutions below

0
On

You need to change the hook function to:

IEPNGFix.hook = function(elm) {
    if (IEPNGFix.hook.enabled) {
        IEPNGFix.process(elm, 0);
    }
};
0
On

I don't see where you define element as anything. Try passing in a valid element value to the IEPNGFix.process function.

0
On

Change the hook function this way works for me:

IEPNGFix.hook = function(evt) {
    if (IEPNGFix.hook.enabled) {
        IEPNGFix.process(evt.srcElement, 0);
    }
};

Reference is here: http://www.twinhelix.com/cgi-bin/forum.pl/iepngfix/531