Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Adding a delete confirmation
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
 
Jarkko Laine  
View profile   Translate to Translated (View Original)
 More options 25 Jan 2008, 08:25
From: Jarkko Laine <jar...@jlaine.net>
Date: Fri, 25 Jan 2008 10:25:16 +0200
Local: Fri 25 Jan 2008 08:25
Subject: Re: Adding a delete confirmation

On 25.1.2008, at 9.20, KJoyner wrote:

> I have added the following that now works, except for the reload which
> does not appear to be working as I intended. For completeness, I have
> included my updated delete method.

> var AJ =
> {
>  encode_authenticity_token:function( token )
>  {
>      return encodeURIComponent( $(token).value )

Can't answer to your reload question off the top of my head, but you  
can replace $(token).value with $F(token) (see http://prototypejs.org/api/utility/dollar-f)

>        document.body.select( 'input[ name = "authenticity_token" ]' )
> [ 0 ] )

This is also same as $$('input[name="authenticity_token']).first() (http://prototypejs.org/api/utility/dollar-dollar
). If you give the input field an id, it can be reduced to $
('authenticity_token').

--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi


    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.

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