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) ?
url: DWWG.syncUrl + '/api/v1/jsonrpc.php',
params: [username, password, '[' + dataToSend.join(',') + ']', DWWG.preferences.purge, DWWG.preferences.fillWithLast],
alert('An Error has ocurred');
// Success Code that works