Call RJS after page render

Is there any way (either from within rails or via JS on the rendered
page) to call RJS after a page has rendered?

I have a form with a bunch of dynamic pulldown menus with dependancies
on each other and several other factors. The selects automatically
update via observe_field when a selection is made and it would be nice
to simply call the same functions from the page just after it is
rendered.

Thanks.

Tony wrote:

Is there any way (either from within rails or via JS on the rendered
page) to call RJS after a page has rendered?

Put raw JavaScript into your event

I have a form with a bunch of dynamic pulldown menus with dependancies
on each other and several other factors.

Put raw JavaScript into your event.

I think you don’t need all that RJS overhead just to do browser-side
things.


Phlip
Test Driven Ajax (on Rails) [Book]
“Test Driven Ajax (on Rails)”
assert_xpath, assert_javascript, & assert_ajax