On 2/8/06, Deco Rior <[EMAIL PROTECTED]> wrote:
> So the data is returned in an object that can be handled rather than use
> strain response.text?
>
>
> Is there a library that allows JSON data object manipulation ?

The callback function is no longer working with JSON

{
  first_name: 'Todd',
  last_name: 'Ross',
  favorite_movies: ['Office Space', 'Serenity']
}

 ... it's a native JavaScript object.  You work with the object by:

function theCallback(transport, json) {
  alert(json.first_name + "'s absolute favorite movie is " +
json.favorite_movies[0]);
}

One such library for working with JavaScript objects would be ... Prototype.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to