Message from discussion
remote links with lowpro and rails
Received: by 10.229.109.212 with SMTP id k20mr940975qcp.20.1242933704462;
Thu, 21 May 2009 12:21:44 -0700 (PDT)
Return-Path: <br...@bryanray.net>
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25])
by gmr-mx.google.com with ESMTP id 18si203167qyk.9.2009.05.21.12.21.44;
Thu, 21 May 2009 12:21:44 -0700 (PDT)
Received-SPF: neutral (google.com: 74.125.92.25 is neither permitted nor denied by best guess record for domain of br...@bryanray.net) client-ip=74.125.92.25;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 74.125.92.25 is neither permitted nor denied by best guess record for domain of br...@bryanray.net) smtp.mail=br...@bryanray.net
Received: by qw-out-2122.google.com with SMTP id 5so946012qwd.53
for <low-pro@googlegroups.com>; Thu, 21 May 2009 12:21:44 -0700 (PDT)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="0016e6476110ea95c0046a710d74"
Received: by 10.220.86.149 with SMTP id s21mr3337763vcl.79.1242933704168; Thu,
21 May 2009 12:21:44 -0700 (PDT)
In-Reply-To: <6c8c9ddc-79e7-4c09-92f4-ef02a82a6ec2@d38g2000prn.googlegroups.com>
References: <6c8c9ddc-79e7-4c09-92f4-ef02a82a6ec2@d38g2000prn.googlegroups.com>
Date: Thu, 21 May 2009 14:21:44 -0500
Message-ID: <45abaced0905211221l4f7db80cq3b36bb31106320c8@mail.gmail.com>
Subject: Re: remote links with lowpro and rails
From: Bryan Ray <br...@bryanray.net>
To: low-pro@googlegroups.com
--0016e6476110ea95c0046a710d74
Content-Type: text/plain; charset=ISO-8859-1
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.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!
> -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."
--0016e6476110ea95c0046a710d74
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
are you sure that you're including the lowpro library?<br><br><div clas=
s=3D"gmail_quote">On Thu, May 21, 2009 at 2:09 PM, patrick <span dir=3D"ltr=
"><<a href=3D"mailto:patrick99...@gmail.com">patrick99...@gmail.com</a>&=
gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><br>
Hi everyone,<br>
<br>
I was just reading this article: =A0<a href=3D"http://blog.7actionsdev.com/=
2008/06/unobtrusive-rails-links-and-forms.html" target=3D"_blank">http://bl=
og.7actionsdev.com/2008/06/unobtrusive-rails-links-and-forms.html</a><br>
<br>
which advised me to use a regular link with the class "remote", a=
nd if<br>
javascript is disable it will function like a regular link, and if<br>
it's enabled it will function as an ajax call.<br>
<br>
the article said I need to add to my page's js:<br>
<br>
=A0Event.addBehavior({<br>
=A0 'a.remote' =A0 : Remote.Link,<br>
=A0 'form.remote': Remote.Form});<br>
<br>
... =A0I did this and firebug gives me:<br>
<br>
Remote is not defined<br>
'a.remote' : Remote.Link,<br>
<br>
.. =A0not sure why it says that, and how to correct it.. =A0Any ideas?<br>
<br>
Thank you!<br>
<font color=3D"#888888">-patrick<br>
<br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>Bryan Ray<br><a =
href=3D"http://www.bryanray.net">http://www.bryanray.net</a><br><br>"P=
rogramming today is a race between software engineers striving to build big=
ger and better idiot-proof programs, and the Universe trying to produce big=
ger and better idiots. So far, the Universe is winning."<br>
--0016e6476110ea95c0046a710d74--