Why can't you $.post("myurl.cfm",data,function(response){ eval(response)})?
If you're certain the response is a valid json string, eval turns it back
into a javascript object/array/whatever.On 3/16/07, Bojan <[EMAIL PROTECTED]> wrote:
Hello everyone, I am trying to figure out how to deserialize json data that is sent back as a response from a .post() call. I looked at the deserialization plugin 0.35 that fills out a form from json-like data. But what I'm trying to do is send back arbitrary data (data, error messages etc. depending on the response from the server function) that has nothing to do with a form - the call itself is not necessarily coming from a form. .getJSON() is doing a fine job at this, but is there a way to get that functionality for .post() calls or maybe I'm missing something obvious? -- -bo _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
