Problem with IE8 throwing " Object doesn't support this property or method" error

3,907 views
Skip to first unread message

MrBaseball34

unread,
Jan 26, 2012, 1:46:05 PM1/26/12
to Prototype & script.aculo.us
Prototype version: 1.6.0.3
Line 4081

4061: fire: function(element, eventName, memo) {
.
.
4081: element.fireEvent(event.eventType, event);


Yes, we are also using jQuery but this has just recently cropped up.
The prototype units are the ones included with Magento v1.4.0.1.

This is causing some tremendous issues with Magento logins in IE8.

Any ideas how to fix this?

Walter Lee Davis

unread,
Jan 26, 2012, 5:22:14 PM1/26/12
to prototype-s...@googlegroups.com
The classic answer to this error is to make sure the element you are trying to use is already "extended" by Prototype. This is as simple as wrapping it in $(element) or calling Element.extend(element) on it. I believe that 1.7 fixes some IE problems; if you can, try updating Prototype to the latest and see if that alone fixes the problem. (Those IE problems I'm remembering may not be related to this, may be IE9-centric, I'm really not sure.)

Walter

> --
> You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
> To post to this group, send email to prototype-s...@googlegroups.com.
> To unsubscribe from this group, send email to prototype-scripta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
>

T.J. Crowder

unread,
Jan 27, 2012, 1:28:42 AM1/27/12
to Prototype & script.aculo.us
Hi,

Expanding on Walter's reply, this details the problem and solution:
http://www.prototypejs.org/learn/extensions

Basically, Prototype can't extend DOM prototypes in IE, so any time
you get a DOM element via another means (for
instance, .parentNode, .firstChild, whatever), you have to be sure to
run it through $() so Prototype can extend it.

HTH,
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com
Reply all
Reply to author
Forward
0 new messages