Hi there,
I'm still stuck on this. I'm using last Prototype version
(downloaded yesterday) There is a chance that $() could be invoked in
an inappropriate time? as if something in Prototype were not yet
loaded or kind of situation like that?
With firebug I see the prototype.js and my own js that uses it so I
guess that the two are loaded normally.
Googling I saw one guy that reports same error message and solved it
reinstalling the framework he was using. Here is more simple there is
nothing more than prototype scriptaculous and my own script.
This is intriguing
cheers,
Sebastian
On Jun 8, 3:44 pm, Sebastian Sastre <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I've see a couple of questions about this but none with a direct
> answer.
>
> The thing is that today I've starting to see this message with
> Firebug. In which situation could possibly be this true?
>
> Element.extend is not a function
>
> I'm using
>
> var Prototype = {
> 10 Version: '1.5.1_rc1',
> ...
>
> in Firefox 2.0.0.4
>
> Debuggin from my own code just after it calls a
>
> var candidate = $(anElementId)
>
> I followed this:
>
> function $(element) {
> 1227 if (arguments.length > 1) {
> 1228 for (var i = 0, elements = [], length = arguments.length; i <
> length; i++)
> 1229 elements.push($(arguments[i]));
> 1230 return elements;
> 1231 }
> 1232 if (typeof element == 'string')
> 1233 element = document.getElementById(element);
> 1234 return Element.extend(element);
> 1235}
>
> and executing line by line I saw that it reaches line 1233 with the
> appropriate (unextended) element and when executing line 1234 it says
> "Element.extend is not a function"
>
> Surely something basic is going on here but I'm unable to see what.
> Does anybody see what is going on?
>
> thanks,
>
> Sebastian
> PS: all this code is being executed starting from an invocation in the
> onLoad() of the script of the page
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---