I am having a problem with the .ajax json return. I was using getJSON, but changed to .ajax and now getting error about returning the json. I am atempting to simply update some text fields with json data. I have changed this thing so much that I forgot what I had originally. So the code may not work... This is being executing on a IBM Series i(AS/400) thus the reason for the not too familiar code.
This is my code: $.ajax({ async: false, url: 'AJAX003R.pgm', data: {VESSEL:vess,VOYAGE:voyg,BLNUM:blno}, dataType: 'json', success: function(json) { $("input#SXSCAC").val(json.SCAC); $("input#SXEORI").val(json.EORI); $("input#SXCCN").val(json.CCN); $("input#SXCAAT").val(json.CAAT); } });