Must be, it was something I was doing a few weeks ago, my business partner
was complaining the prototype code I wrote had started to die, just stopping
when it got to the evalJSON.
Marks question jogged my memory..
I think i'm going to be posting again in a sec- gotta implement code similar
to igoogle with drag and drop zones and I'm not sure how to go about it...
I'll have a play and see how far I get..
On 6/9/07, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
>
>
> Hey again,
>
> Er, I just tried Ajax.Request'ing a JSON array, with a simple target
> file that contains the following:
>
> [ { 'name': 'Chris', 'age': 29 }, { 'name': 'Sam', 'age': 23 } ]
>
> I do a xhr.responseText.evalJSON() and the result I get sure is an array
> of objects, I can perfectly well do:
>
> var obj = xhr.responseText.evalJSON();
> console.log(obj[0].name); // 'Chris'
>
> So you must be doing something weird with your JSON...
>
> --
> Christophe Porteneuve aka TDD
> [EMAIL PROTECTED]
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---