[Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2010-03-15 Thread clupprich
I had similiar problems once with Prototype and IE6. My workaround was
to "not trust" $() but use the Element.foo methods instead (which
worked quite well, however, I needed to patch some of those to use
Element.bar internally). I'll try to come up with some source code for
this.

Christoph

On Mar 15, 8:12 am, "T.J. Crowder"  wrote:
> Hi,
>
> > 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.
>
> You've said "Element.extent" in two different posts now. Just to be
> absolutely sure we're not overlooking something obvious:  There is no
> "Element.extent" function in Prototype. There is an "Element.extend"
> function, which is used by $() (and others). Has your prototype.js
> file gotten messed up or something? If it's just a typo, no worries (I
> have several standard typos I keep repeating), but seeing it in two
> different notes makes me think I should flag it up.
>
> Assuming it's just a typo:
>
> Fundamentally, Prototype 1.6.1 *does* work in IE6. I've used it in a
> couple of intranet projects in organizations where IE6 is still
> (shudder) the corporate standard. So the question is what's happening
> in your specific situation.
>
> I'd probably look at debugging this line by line in Visual Studio or
> Visual Interdev. In particular, since you're saying that `Element` is
> undefined at the point where $() is calling it (which is Truly Weird),
> I'd look at walking through the Prototype bootstrap and in particular
> lines 1770-1784 where `Element` is getting set up.
>
> But first I'd double-check that my copy of Prototype hadn't gotten
> messed up somehow by downloading a fresh copy and comparing.
>
> FWIW,
> --
> T.J. Crowder
> Independent Software Consultant
> tj / crowder software / comwww.crowdersoftware.com
>
> On Jan 14, 11: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  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 
> > > > prototype-scriptaculous@googlegroups.com
> > > > .
> > > > To unsubscribe from this group, send email to 
> > > > prototype-scriptaculous+unsubscr...@googlegroups.com
> > > > .
> > > > 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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2010-03-15 Thread T.J. Crowder
Hi,

> 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.

You've said "Element.extent" in two different posts now. Just to be
absolutely sure we're not overlooking something obvious:  There is no
"Element.extent" function in Prototype. There is an "Element.extend"
function, which is used by $() (and others). Has your prototype.js
file gotten messed up or something? If it's just a typo, no worries (I
have several standard typos I keep repeating), but seeing it in two
different notes makes me think I should flag it up.

Assuming it's just a typo:

Fundamentally, Prototype 1.6.1 *does* work in IE6. I've used it in a
couple of intranet projects in organizations where IE6 is still
(shudder) the corporate standard. So the question is what's happening
in your specific situation.

I'd probably look at debugging this line by line in Visual Studio or
Visual Interdev. In particular, since you're saying that `Element` is
undefined at the point where $() is calling it (which is Truly Weird),
I'd look at walking through the Prototype bootstrap and in particular
lines 1770-1784 where `Element` is getting set up.

But first I'd double-check that my copy of Prototype hadn't gotten
messed up somehow by downloading a fresh copy and comparing.

FWIW,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com


On Jan 14, 11: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  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 
> > > prototype-scriptaculous@googlegroups.com
> > > .
> > > To unsubscribe from this group, send email to 
> > > prototype-scriptaculous+unsubscr...@googlegroups.com
> > > .
> > > 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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2010-03-12 Thread Matthew
I am seeing a similar problem with $() notation not working in IE6,
but working on IE7 and IE8. This is for prototype 1.6.1 specifically.
Reverting back to 1.6.0 fixes the problem, but then I have other IE8
problems with 1.6.0. Has any information on this issue or similar to
it changed?

Sincere thanks ahead of time. This is causing me much time and stress
trying to debug (on IE6 specifically ;)

Matthew

On Jan 14, 6:59 am, Walter Lee Davis  wrote:
> 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  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 
> >>> prototype-scriptaculous@googlegroups.com
> >>> .
> >>> To unsubscribe from this group, send email to 
> >>> prototype-scriptaculous+unsubscr...@googlegroups.com
> >>> .
> >>> 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 
> > prototype-scriptaculous@googlegroups.com
> > .
> > To unsubscribe from this group, send email to 
> > prototype-scriptaculous+unsubscr...@googlegroups.com
> > .
> > 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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



Re: [Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2010-01-14 Thread Walter Lee Davis
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  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 prototype-scriptaculous@googlegroups.com
.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
.
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 prototype-scriptaculous@googlegroups.com 
.
To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com 
.
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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




[Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2010-01-14 Thread Carsten
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  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 
> > prototype-scriptaculous@googlegroups.com
> > .
> > To unsubscribe from this group, send email to 
> > prototype-scriptaculous+unsubscr...@googlegroups.com
> > .
> > 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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




Re: [Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2009-11-27 Thread Walter Lee Davis
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 prototype-scriptaculous@googlegroups.com 
> .
> To unsubscribe from this group, send email to 
> prototype-scriptaculous+unsubscr...@googlegroups.com 
> .
> 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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




[Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2009-11-26 Thread Carsten
> 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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




[Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2009-11-26 Thread Carsten
> 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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




[Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2009-11-13 Thread ColinFine



On Nov 11, 2:55 pm, Carsten  wrote:
> Hi,
>
> I used prototype 1.5.0rc2 and the testing tool Selenium 1.0 in a web
> application. When I updated prototype to 1.6.1, everything still works
> in FF 3.0, FF 3.5, IE7, IE8, but in IE6 I get strange javascript
> error messages:
>
> The code which fails is "Element.extent" in the function $().  The
> error message is "Object doesn't support this property or method".
>
> When I try to inspect "Element" in the debugger, I get the same error
> as above. When I evaluate "typeof Element", I get "unknown" (not
> "undefined").
>
Are you certain that the object has actually been created in the DOM
when you call this?

--~--~-~--~~~---~--~~
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-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---