Web Images Videos Maps News Shopping Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
What is the "Remote" stuff in the source code?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
timothytoe  
View profile   Translate to Translated (View Original)
 More options 5 Feb 2008, 15:46
From: timothytoe <timothy...@gmail.com>
Date: Tue, 5 Feb 2008 07:46:18 -0800 (PST)
Local: Tues 5 Feb 2008 15:46
Subject: What is the "Remote" stuff in the source code?
Dan,

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?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Webb  
View profile   Translate to Translated (View Original)
 More options 5 Feb 2008, 15:51
From: "Dan Webb" <d...@danwebb.net>
Date: Tue, 5 Feb 2008 15:51:16 +0000
Local: Tues 5 Feb 2008 15:51
Subject: Re: What is the "Remote" stuff in the source code?

> 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 Webb
http://www.danwebb.net

aim: danwrong123
skype: danwrong


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
timothytoe  
View profile   Translate to Translated (View Original)
 More options 5 Feb 2008, 16:46
From: timothytoe <timothy...@gmail.com>
Date: Tue, 5 Feb 2008 08:46:28 -0800 (PST)
Local: Tues 5 Feb 2008 16:46
Subject: Re: What is the "Remote" stuff in the source code?
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
donald.piret@gmail.com  
View profile   Translate to Translated (View Original)
 More options 25 Feb 2008, 16:46
From: "donald.pi...@gmail.com" <donald.pi...@gmail.com>
Date: Mon, 25 Feb 2008 08:46:50 -0800 (PST)
Local: Mon 25 Feb 2008 16:46
Subject: Re: What is the "Remote" stuff in the source code?
Am I wrong or do these behaviors not work with the new rails
protect_from_forgery. Was having trouble with the remote behavior
until I disabled it. Any way to get the two to work together nicely?

On 5 Feb, 16:51, "Dan Webb" <d...@danwebb.net> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Webb  
View profile   Translate to Translated (View Original)
 More options 25 Feb 2008, 17:04
From: "Dan Webb" <d...@danwebb.net>
Date: Mon, 25 Feb 2008 17:04:01 +0000
Local: Mon 25 Feb 2008 17:04
Subject: Re: What is the "Remote" stuff in the source code?
They should do as long as you make sure they serialize the hidden
field with the anit forgery token in as well as the other data.

On 2/25/08, donald.pi...@gmail.com <donald.pi...@gmail.com> wrote:

>  Am I wrong or do these behaviors not work with the new rails
>  protect_from_forgery. Was having trouble with the remote behavior
>  until I disabled it. Any way to get the two to work together nicely?

--
Dan Webb
http://www.danwebb.net

aim: danwrong123
skype: danwrong


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google