wangjammer5-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2008-May-29 09:12 UTC
MSIE 6 and 7 not extending elements
Hi all,
Sorry if this is a FAQ but having no luck with google.
We''ve used Prototype 1.5.x and currently 1.6.0.2 and are seeing
something weird.
My understanding from the docs is that all elements retrieved from $
(''xxxx'') utililty function are extended with the prototype
methods
e.g. update(str).
Our problem is twofold, but possibly a single root cause:
1) On Safari and Firefox this does not seem to be happening. i.e. we
cannot call $(''someelem'').observe(....) - we always still have
to use
the longer Event.observe($(''someelem''), ....) form. Why would
this be
the case?
2) Our code runs fine (using the longer method forms) in Safari and
Firefox. However in MSIE no calls to the extra Element methods work eg
$(''somename'').update("new text") yields the dreaded
"Object doesn''t
support this property or method"
Can you tell me what I am doing wrong / are my expectations wrong?
It''s particularly frustrating as this worked in a previous webapp with
Prototype 1.5 but can I see what the difference is / reverse engineer
it?! Nope.
Thanks in advance for your help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Hi,
Your expectation is correct, $(''someelem'').observe(...) should
work on
Safari, Firefox, IE, etc., provided you''re including Prototype.
I recommend creating the smallest test page you can that demonstrates
the problem. Nine times out of 10, if you do that, you realize what
the problem is. :-) The 10th time (when you still can''t see what it
is) you end up with a nice minimal example you can post to the mailing
list so folks can help you out.
Hope this helps,
--
T.J. Crowder
tj / crowder software / com
On May 29, 10:12 am,
"wangjamm...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org"
<wangjamm...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
wrote:> Hi all,
>
> Sorry if this is a FAQ but having no luck with google.
>
> We''ve used Prototype 1.5.x and currently 1.6.0.2 and are seeing
> something weird.
>
> My understanding from the docs is that all elements retrieved from $
> (''xxxx'') utililty function are extended with the
prototype methods
> e.g. update(str).
>
> Our problem is twofold, but possibly a single root cause:
>
> 1) On Safari and Firefox this does not seem to be happening. i.e. we
> cannot call $(''someelem'').observe(....) - we always still
have to use
> the longer Event.observe($(''someelem''), ....) form. Why
would this be
> the case?
>
> 2) Our code runs fine (using the longer method forms) in Safari and
> Firefox. However in MSIE no calls to the extra Element methods work eg
> $(''somename'').update("new text") yields the
dreaded "Object doesn''t
> support this property or method"
>
> Can you tell me what I am doing wrong / are my expectations wrong?
> It''s particularly frustrating as this worked in a previous webapp
with
> Prototype 1.5 but can I see what the difference is / reverse engineer
> it?! Nope.
>
> Thanks in advance for your help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---