Frederick Cheung wrote:
> On Mar 10, 3:51�pm, Robert Walker <[email protected]> wrote:
>> I wish Prototype had this built-in. However, it's pretty easy to add the
>> onDOMReady extension script and then use the following:
>>
> Isn't that what prototype's dom:loaded event  does (http://
> www.prototypejs.org/api/document/observe )

Good catch Frederick! The last time I looked for this in the Prototype 
API docs they showed the example as using the window load event. This is 
why I went looking for the onDOMLoaded in the first place.

I had seen something like this before, but didn't realize that it was 
Prototype that was adding the "dom:loaded" event. I was assuming that 
event didn't work across all browsers, but I see from the above link 
that Prototype should be taking care of that.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en.

Reply via email to