Go to Google Groups Home    Low Pro
remote links with lowpro and rails

patrick <patrick99...@gmail.com>

Hi everyone,

I was just reading this article:  http://blog.7actionsdev.com/2008/06/unobtrusive-rails-links-and-forms...

which advised me to use a regular link with the class "remote", and if
javascript is disable it will function like a regular link, and if
it's enabled it will function as an ajax call.

the article said I need to add to my page's js:

  Event.addBehavior({
   'a.remote'   : Remote.Link,
   'form.remote': Remote.Form});

...  I did this and firebug gives me:

Remote is not defined
'a.remote' : Remote.Link,

..  not sure why it says that, and how to correct it..  Any ideas?

Thank you!
-patrick