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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fddbb3cd16868f4741c2e86ef015a639?d=identicon&s=25 Sergio T. Ruiz (sergio101)
on 2009-01-30 16: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
correctly..

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
page..

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.