Topic: using ajax replace_html when page loads?

I can't find anywhere that ajax is able to run on an onload event for the window, unless you use your own javascript.  I would have thought that ajax has some sort of onload helper to aid in these kinds of things.  Does anyone know if ajax has ruby helper code to do a replace_html when a window loads?

Re: using ajax replace_html when page loads?


As far as I know, there is not a way to invoke an action in an RJS file on load. If you're sticking with Prototype, you'l need to use an Event.observe call on the window, in jQuery it's document.ready.


Brandon Taylor
Sr. Developer