Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
documentation correction
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
  2 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:
Followup To:
Add Cc | Add Followup-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 you hear
 
drewB  
View profile  
 More options Oct 13, 2:30 pm
From: drewB <dbats...@gmail.com>
Date: Tue, 13 Oct 2009 11:30:25 -0700 (PDT)
Local: Tues, Oct 13 2009 2:30 pm
Subject: documentation correction
On page http://www.prototypejs.org/api/ajax/request at the bottom when
describing how JSON is handled it says that the JSON is evaluated and
returned in the headerJSON property.  It should say responseJSON.  The
same is true of the sample code.

    Reply    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.
T.J. Crowder  
View profile  
 More options Oct 14, 4:16 am
From: "T.J. Crowder" <t...@crowdersoftware.com>
Date: Wed, 14 Oct 2009 01:16:13 -0700 (PDT)
Local: Wed, Oct 14 2009 4:16 am
Subject: Re: documentation correction
Hi,

On Oct 13, 7:30 pm, drewB <dbats...@gmail.com> wrote:

> On pagehttp://www.prototypejs.org/api/ajax/requestat the bottom when
> describing how JSON is handled it says that the JSON is evaluated and
> returned in the headerJSON property.  It should say responseJSON.  The
> same is true of the sample code.

Thanks for that, but actually, it's correct.  That section is talking
about the X-JSON header ("Some backends will return JSON not as
response text, but in the X-JSON header...").  The X-JSON header is
deserialized and made available as headerJSON.  So you can return HTML
(for instance) along with a bit of JSON in a header.  You're thinking
of when the main content comes back as application/json, in which case
it is indeed available as responseJSON.

HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com


    Reply    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 »

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