You''ll want to use Prototypes PeriodicalExecuter function to
periodically call more data from Ruby and execute a function in your
javascript.
Check the API for Prototype: http://www.prototypejs.org/api/periodicalExecuter
Cheers,
Cam
On Aug 2, 1:38 pm, Dl Lo
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi everyone,
>
> I need help with RoR and Google Maps. Here is my dilemma. Say
> coordinates are being fed into a db. I would like to create a page that
> gets those coordinates say every 5 seconds and moves a marker on a
> Google Map. I do not want to refresh the page. Maybe AJAX? I''m
not
> sure. Has anyone ever done this? Any help would be greatly appreciated.
>
> d
> --
> Posted viahttp://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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---