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

Bryan Ray <br...@bryanray.net>

are you sure that you're including the lowpro library?

On Thu, May 21, 2009 at 2:09 PM, patrick <patrick99...@gmail.com> wrote:

> 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

--
Bryan Ray
http://www.bryanray.net

"Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning."