[jQuery] not returning a JSON object

2009-08-27 Thread defdev
Hi, i have a form defined as follows: $(document).ready(function(){ $('#edit_page_form').ajaxForm({ type: "POST", timeout: 45000, dataType: 'json', error: function() { alert("error etc "); }, success: function(json) {

[jQuery] Re: not returning a JSON object

2009-09-01 Thread defdev
Hi, sorry - what is json.d? On Aug 27, 6:43 pm, "W. Young" wrote: > have you tried json.d ? > > On Aug 27, 9:38 am, defdev wrote: > > > Hi, > > > i have a form defined as follows: > > > $(document).ready(function(){ > >         $('#ed

[jQuery] Re: not returning a JSON object

2009-09-01 Thread defdev
 am, Nick Fitzsimons wrote: > 2009/8/27 defdev : > > > from the server side: > > >  echo '{ message: "why wont this work" }'; > > That isn't valid JSON. According to the JSON spec <http://json.org/>, > the name part of a name: value pa

[jQuery] loop through multi dimensional json?

2009-09-29 Thread defdev
Hi, im sure this is a simple matter, but i cant seem to work out how to loop through a multi dimensional JSON object (where the keys are unknown). example json: { "processed":false, "message":"External link could not be set:", "message_array": "{ \"link\":