[Proto-Scripty] Re: Multi-dimensional JSON passed in an Ajax request?

2009-12-18 Thread Ian R
Oh, by "sir" I mean T.J. Crowder (I hadn't yet seen the second reply). I don't mean to crud up the list-serv, and thank you Matt Foster, but I much prefer the first solution... just wanted to clarify :) -- You received this message because you are subscribed to the Google Groups "Prototype & s

[Proto-Scripty] Re: Multi-dimensional JSON passed in an Ajax request?

2009-12-18 Thread Ian R
Ahhh. Thank you so much, sir! This solution works perfectly for my needs. And yes, it does make sense, I just didn't realize. This is just so totally awesome... god this is the best day EVER! -- You received this message because you are subscribed to the Google Groups "Prototype & script.ac

[Proto-Scripty] Re: Multi-dimensional JSON passed in an Ajax request?

2009-12-18 Thread Matt Foster
I'd just put it in a variable. parameters : '?method=saveData&data='+data.toJSON(); -- http://positionabsolute.net On Dec 17, 6:48 pm, "T.J. Crowder" wrote: > Hi, > > Ajax.Updater (and the rest) don't claim to post object graphs to the > server, and in fact they don't. They only pass name-val

[Proto-Scripty] Re: Multi-dimensional JSON passed in an Ajax request?

2009-12-17 Thread T.J. Crowder
Hi, Ajax.Updater (and the rest) don't claim to post object graphs to the server, and in fact they don't. They only pass name-value pairs, because they're doing normal HTTP GETs or POSTs, which are based on name-value pairs. HTTP doesn't know anything about JSON. If you want to pass an object grap