Hi, I am using Jquery form plugin to interact with PHP server code. When firebug is on, the code correctly sends the data and processes the reply from the server in Json format. Here's the code:
var options = { beforeSubmit: showRequest, // pre-submit callback success: processJson, // post-submit callback dataType: 'json', target: '#feedback', clearForm: true }; //form submit $('#create_project_fm').ajaxSubmit(options); function process(data){ console.log("process"); if (data.error== "") { window.location.reload(true); } else if(data.error!="") { $('#feedback').addClass('error'); $('#feedback').text('error: ' + data.error + ''); }else { //feedback here $('#feedback').addClass('success'); $('#feedback').text('error: ' + data.feedback + ''); } } However, I have noticed that when I turn Firebug off, the server code prints out the echo statement instead of this being parsed by the javascript function "process" as Json. Any help would be really appreciated. Val