Hello guys,
I have an application that requires to make an Ajax synchronization on the server. I'm using the JQuery.ajax function which works well on success but yesterday my server was returning an error (basically a 500 Internal Server Error) and the device was not showing the error message. Here is the code:
Please, can you tell me why in the emulator (Aptana) the error message is displayed but not on a real device (N95) ?Code:jQuery.ajax({ contentType: 'application/json', type: 'post', processData: false, dataType: 'json', url: DWWG.syncUrl + '/api/v1/jsonrpc.php', cache: false, data: $.toJSON({ jsonrpc: '2.0', method: 'synchronize', params: [username, password, '[' + dataToSend.join(',') + ']', DWWG.preferences.purge, DWWG.preferences.fillWithLast], id: 1 }), error: function(req,stat,err){ alert('An Error has ocurred'); }, success: function(inp){ // Success Code that works } });

Reply With Quote

