Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion What is the "Remote" stuff in the source code?

View Parsed - Show only message text

MIME-Version: 1.0
Message-ID: <b69a44de-50d2-477c-95ad-02a021716279@s37g2000prg.googlegroups.com>
Date: Tue, 5 Feb 2008 08:46:28 -0800 (PST)
Received: by 10.151.8.8 with SMTP id l8mr447172ybi.1.1202229988444; Tue, 05 
	Feb 2008 08:46:28 -0800 (PST)
In-Reply-To: <5b3e279f0802050751p1f16ce34ybc671846ff22c0bc@mail.gmail.com>
X-IP: 72.0.160.79
References: <febf9272-337e-4ab9-acad-cc5a2ec65eb3@q39g2000hsf.googlegroups.com> 
	<5b3e279f0802050751p1f16ce34ybc671846ff22c0bc@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.11) 
	Gecko/20071127 Firefox/2.0.0.11,gzip(gfe),gzip(gfe)
Subject: Re: What is the "Remote" stuff in the source code?
From: timothytoe <timothy...@gmail.com>
To: Low Pro <low-pro@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Interesting. This should be the subject of a future blog post on your
site.

On Feb 5, 7:51 am, "Dan Webb" <d...@danwebb.net> wrote:
> > You have a bunch of form and ajax stuff at the bottom of the source
> > code for Low Pro jQuery. Hidden features or just plumbing?
>
> Those are two built in behaviors that turn links and forms into
> versions that send via Ajax.
>
> $('a').attach(Remote.Link, { type: 'GET', dataType: 'script' });
>
> for example...
>
> both of them work woth a load of sensible defaults taking the URL from
> the href or the action and the method from the method attribute.  The
> form automatically serializes the data from the form its attached to
> to send.
>
> On top of this, the Remote.Form behavior helps serialization by only
> sending the submit button that you pressed in the request.
>
> Cheers,
>
> --
> Dan Webbhttp://www.danwebb.net
>
> aim: danwrong123

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google