Message from discussion
remote links with lowpro and rails
MIME-Version: 1.0
Received: by 10.150.189.9 with SMTP id m9mr237110ybf.8.1242932969363; Thu, 21
May 2009 12:09:29 -0700 (PDT)
Date: Thu, 21 May 2009 12:09:29 -0700 (PDT)
X-IP: 71.106.99.33
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US;
rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10,gzip(gfe),gzip(gfe)
Message-ID: <6c8c9ddc-79e7-4c09-92f4-ef02a82a6ec2@d38g2000prn.googlegroups.com>
Subject: remote links with lowpro and rails
From: patrick <patrick99...@gmail.com>
To: Low Pro <low-pro@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi everyone,
I was just reading this article: http://blog.7actionsdev.com/2008/06/unobtrusive-rails-links-and-forms.html
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!