I use Prototype 1.6.0, upgraded from 1.5.1 just recently. I sometimes get this message: "Function.prototype.delay.curry is not a function" I am clueless as to why this happens. Trying to poke around to find a thread to pull, I found this (forgive me if it is unrelated): If I use Scriptaculous too, I often get this error shortly after the curry-smack: "script.aculo.us requires the Prototype JavaScript framework >= 1.6.0" and it turns out that: 1) the loaded version string is 160000, so OK 2) (typeof Prototype==''undefined'') is false, so OK 3) (typeof Element == ''undefined'') is false, so OK 4) (typeof Element.Methods==''undefined'') is true - NOT OK, exception thrown How come prototype can be loaded but miss out on defining Element.Methods? Are these problems related? The curry stuff is when using only prototype, and is what really bothers me. Thankful for any suggestions. Best regards /P. Envall --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry, the versionstring would be 106000, not what I wrote above. mr.envall skrev:> I use Prototype 1.6.0, upgraded from 1.5.1 just recently. > I sometimes get this message: > > "Function.prototype.delay.curry is not a function" > I am clueless as to why this happens. > > Trying to poke around to find a thread to pull, I found this (forgive > me if it is unrelated): > > If I use Scriptaculous too, I often get this error shortly after the > curry-smack: > > "script.aculo.us requires the Prototype JavaScript framework >= 1.6.0" > > and it turns out that: > 1) the loaded version string is 160000, so OK > 2) (typeof Prototype==''undefined'') is false, so OK > 3) (typeof Element == ''undefined'') is false, so OK > 4) (typeof Element.Methods==''undefined'') is true - NOT OK, exception > thrown > > How come prototype can be loaded but miss out on defining > Element.Methods? > Are these problems related? The curry stuff is when using only > prototype, and is > what really bothers me. > > Thankful for any suggestions. > > Best regards > /P. Envall--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Further investigations: when opening a _site-internal_ link with javascript like this: <a href="# onclick="window.open(''/msgWin.do''); return false;">Open info window</a> The line in prototype.js that does this: Function.prototype.defer = Function.prototype.delay.curry(0.01); results in this error: Function.prototype.delay.curry is not a function Nevermind the scriptaculous stuff, probably just depressing errors that follow in the process of the above line failing. Still puzzled. /P On 5 Dec, 10:50, "mr.envall" <petter.env...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sorry, the versionstring would be 106000, not what I wrote above. > > mr.envall skrev: > > > I use Prototype 1.6.0, upgraded from 1.5.1 just recently. > > I sometimes get this message: > > > "Function.prototype.delay.curry is not a function" > > I am clueless as to why this happens. > > > Trying to poke around to find a thread to pull, I found this (forgive > > me if it is unrelated): > > > If I use Scriptaculous too, I often get this error shortly after the > > curry-smack: > > > "script.aculo.us requires the Prototype JavaScript framework >= 1.6.0" > > > and it turns out that: > > 1) the loaded version string is 160000, so OK > > 2) (typeof Prototype==''undefined'') is false, so OK > > 3) (typeof Element == ''undefined'') is false, so OK > > 4) (typeof Element.Methods==''undefined'') is true - NOT OK, exception > > thrown > > > How come prototype can be loaded but miss out on defining > > Element.Methods? > > Are these problems related? The curry stuff is when using only > > prototype, and is > > what really bothers me. > > > Thankful for any suggestions. > > > Best regards > > /P. Envall--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Oh whee!! More fine grains to chew on: This is in Firefox 2.0 on FreeBSD. No problem on the 2.0.0.9 Windows version, for example. /Me again On 5 Dec, 11:43, "mr.envall" <petter.env...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Further investigations: > > when opening a _site-internal_ link with javascript like this: > > <a href="# onclick="window.open(''/msgWin.do''); return false;">Open > info window</a> > > The line in prototype.js that does this: > Function.prototype.defer = Function.prototype.delay.curry(0.01); > > results in this error: > Function.prototype.delay.curry is not a function > > Nevermind the scriptaculous stuff, probably just depressing errors > that follow in the process of the above line failing. > > Still puzzled. > > /P > > On 5 Dec, 10:50, "mr.envall" <petter.env...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Sorry, the versionstring would be 106000, not what I wrote above. > > > mr.envall skrev: > > > > I use Prototype 1.6.0, upgraded from 1.5.1 just recently. > > > I sometimes get this message: > > > > "Function.prototype.delay.curry is not a function" > > > I am clueless as to why this happens. > > > > Trying to poke around to find a thread to pull, I found this (forgive > > > me if it is unrelated): > > > > If I use Scriptaculous too, I often get this error shortly after the > > > curry-smack: > > > > "script.aculo.us requires the Prototype JavaScript framework >= 1.6.0" > > > > and it turns out that: > > > 1) the loaded version string is 160000, so OK > > > 2) (typeof Prototype==''undefined'') is false, so OK > > > 3) (typeof Element == ''undefined'') is false, so OK > > > 4) (typeof Element.Methods==''undefined'') is true - NOT OK, exception > > > thrown > > > > How come prototype can be loaded but miss out on defining > > > Element.Methods? > > > Are these problems related? The curry stuff is when using only > > > prototype, and is > > > what really bothers me. > > > > Thankful for any suggestions. > > > > Best regards > > > /P. Envall--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Tobie Langel
2007-Dec-05 12:56 UTC
Re: Prototype 1.6: typeof Element.Methods==''undefined''
you probably have an older version of Prototype or script.aculo.us cached. Please make sure you clear your cache. Best, Tobie On Dec 5, 11:47 am, "mr.envall" <petter.env...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Oh whee!! More fine grains to chew on: > > This is in Firefox 2.0 on FreeBSD. No problem on the 2.0.0.9 Windows > version, for example. > > /Me again > > On 5 Dec, 11:43, "mr.envall" <petter.env...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Further investigations: > > > when opening a _site-internal_ link with javascript like this: > > > <a href="# onclick="window.open(''/msgWin.do''); return false;">Open > > info window</a> > > > The line in prototype.js that does this: > > Function.prototype.defer = Function.prototype.delay.curry(0.01); > > > results in this error: > > Function.prototype.delay.curry is not a function > > > Nevermind the scriptaculous stuff, probably just depressing errors > > that follow in the process of the above line failing. > > > Still puzzled. > > > /P > > > On 5 Dec, 10:50, "mr.envall" <petter.env...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Sorry, the versionstring would be 106000, not what I wrote above. > > > > mr.envall skrev: > > > > > I use Prototype 1.6.0, upgraded from 1.5.1 just recently. > > > > I sometimes get this message: > > > > > "Function.prototype.delay.curry is not a function" > > > > I am clueless as to why this happens. > > > > > Trying to poke around to find a thread to pull, I found this (forgive > > > > me if it is unrelated): > > > > > If I use Scriptaculous too, I often get this error shortly after the > > > > curry-smack: > > > > > "script.aculo.us requires the Prototype JavaScript framework >= 1.6.0" > > > > > and it turns out that: > > > > 1) the loaded version string is 160000, so OK > > > > 2) (typeof Prototype==''undefined'') is false, so OK > > > > 3) (typeof Element == ''undefined'') is false, so OK > > > > 4) (typeof Element.Methods==''undefined'') is true - NOT OK, exception > > > > thrown > > > > > How come prototype can be loaded but miss out on defining > > > > Element.Methods? > > > > Are these problems related? The curry stuff is when using only > > > > prototype, and is > > > > what really bothers me. > > > > > Thankful for any suggestions. > > > > > Best regards > > > > /P. Envall--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---