Support » Fixing WordPress » prototype.js error line 3920

  • I keep getting this error in IE7 ( i know) and Safari keeps picking this up in its debug. If anyone could help it is much appreciated. Thanks ahead of time!

    it is on line 3920 in the prototype.js file

    This is the error report that Safari give me not really sure what this means?

    TypeError: Result of expression ‘$’ [undefined] is not a function. (repeated 2 times)

    `var wrapper = findWrapper(id, eventName, handler);
    if (!wrapper) return element;

    if (element.removeEventListener) {
    element.removeEventListener(name, wrapper, false);
    } else {
    element.detachEvent(“on” + name, wrapper);
    }

    destroyWrapper(id, eventName, handler);

    return element;
    },

    fire: function(element, eventName, memo) {
    element = $(element); <—- line 3920 —-<

    if (element == document && document.createEvent && !element.dispatchEvent)
    element = document.documentElement;

    if (document.createEvent) {
    var event = document.createEvent(“HTMLEvents”);
    event.initEvent(“dataavailable”, true, true);
    } else {
    var event = document.createEventObject();
    event.eventType = “ondataavailable”;
    }

    event.eventName = eventName;
    event.memo = memo || { };

    if (document.createEvent) {
    element.dispatchEvent(event);
    } else {
    element.fireEvent(event.eventType, event);
    }

    return event;
    }
    };
    })());`

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘prototype.js error line 3920’ is closed to new replies.