Adam
Adam

Reputation: 415

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

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?

Upvotes: 0

Views: 1426

Answers (3)

user1836125
user1836125

Reputation: 1

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

Upvotes: 0

MDrollette
MDrollette

Reputation: 6927

You need to change the hook function to:

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

Upvotes: 3

Matt Huggins
Matt Huggins

Reputation: 83299

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

Upvotes: 0

Related Questions