Forum: Ruby on Rails running an rjs function on page load

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sergio T. R. (Guest)
on 2009-01-30 17:20
i am currently working on a function that adds markers to a map..

without getting into too much detail, the map is initially in a
display:none div.. so, i had to do a few things to get it to show up

initially, i needed to add markers when the user clicked a link. i did
this with a call to an rjs.. this just pushed new markers onto the

we now want to add these markers on page load..

is there a way i can fire this off once, after the page is loaded..
without any user intervention?
This topic is locked and can not be replied to.