Does the element exist in the DOM at the time you are trying to extend
it? Is your script which is asking for it either:
A) At the bottom of the page, say just before /body
B) Wrapped in a document/dom:loaded listener function, so it only
fires after the DOM is ready
...?
My example code would not help you if the object didn't already exist
in the browser's memory.
Walter
On Jan 14, 2010, at 6:14 AM, Carsten wrote:
As said in the original post: It is the $() functions itsself which
fails. $() calls Element.extent, and IE6 complains about Element to
not support the method request.
On 27 Nov. 2009, 17:01, Walter Lee Davis <[email protected]> wrote:
You will get this error in IE when the object you are trying to
manipulate in Prototype has not been "extended" yet[1]. You can work
around this by using the $ function to get and extend the object
before attempting to manipulate it.
var elm = $(elm);
if (!!elm){
//your code here
}
Walter
1.http://api.prototypejs.org/dom/element.html#extend-class_method
On Nov 26, 2009, at 5:52 AM, Carsten wrote:
Are you certain that the object has actually been created in the
DOM
when you call this?
"Element" is the Element-object from the prototype library. The
library has been included and other objects like Ajax are present.
--
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 [email protected]
.
To unsubscribe from this group, send email to
[email protected]
.
For more options, visit this group
athttp://groups.google.com/group/prototype-scriptaculous?hl=en
.
--
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 [email protected]
.
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en
.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.