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, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> 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 [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
-~----------~----~----~----~------~----~------~--~---