[jQuery] Ajax using JSON, parse return string before success

2009-05-07 Thread Eli Perelman
efficiently? Thanks, Eli Perelman Here is the request: $.ajax({ async: false, type: POST, url: ajaxHandler, dataType: json, data: action=getInsuranceCompanyid= + id, dataFilter: function(data

[jQuery] Custom JSON sanitizing during $.ajax

2009-05-07 Thread Eli Perelman
Hello All, I am trying to complete an Ajax request in which PHP returns a JSON- formed string. One of the variables inside the JSON object contains a path, which contains backslashes. This seems to cause a problem because nothing in the success function seems to run. So, I tried cleaning the