Right...
I have finally tracked this one down.
It turns out that when I wrote this particular page, I used the
scriptaculous.net control to add an autocompletor to the page.
This control, by default, includes a version of prototype which is
compiled into its dll, and I think that it was clashing with the
latest version- causing the missing methods.
I had completely forgotten about the reference, but decided that since
the problem was only on this page, there must be an include or one of
my javascripts breaking it.
Finally! and its only 4:20am!
Sorry about all the hassles with the .up() thread and this one, I was
lacking the debugging ability to track where the problem was more than
anything.
Gareth
On Jun 10, 4:03 am, "Gareth Evans"
<agr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Okay, I posted about this a few days ago but couldn''t replicate it
in my
> test case.
> I have this page, which everything works fine on... except some of the
> prototype methods.
> They do not appear to exist on an extended Element.
>
> ie:
> Element._extended = true
> Element.up = undefined
> Element.addClassName = function
> Element.getElementsBySelector = undefined
>
> I''ve been trying to figure this one out... I put an alert at the
start of
> Element.extend and loaded my page...
> I only get one alert, and if I comment my $(''EditGrid'')
line, it still comes
> up.
>
> It bails from the function at the first if statement.
>
> It''s like the $(''EditGrid'') (which returns an
object) is not calling
> Element.extend for some reason; but _extended is true on that element, and
> some of the prototype methods are there...
>
> If I put an alert in $(), I only get one, no matter how many times it is
> called in my page...
>
> EditGrid is a div, but i''ve experienced this on the same page with
a input
> field.
>
> this is in IE6, and its entirely possible there is something external wrong
> in this page but i''m having a great deal of trouble debugging
it...
>
> HELP!
>
> Gareth
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---