views:

25

answers:

1

Hi,

I have a prototype question in the context of Ruby on Rails.

QUESTION - In a rails view how do I trigger a remote AJAX call?

ie. like "link_to_remote" but directly without the link - so I want specifically in my case when the windows loads to be able to trigger a remote call to populate data in a DIV via a remote call...

thanks

+1  A: 

You can use the built-in Ajax functions provided by Prototype. No rails-magic required.

Toby Hede