I recently migrated from jquery 1.3 to version 1.4. I am using Ajax to get the results from a php backend file. When the networkconnection is not available (no internet-connection) i normally got a error callback. As of version 1.4 I however get a success callback (with emty data). This causes my application to function abnormally :(
Does anyone know why this is currently the case? I noticed that some JSON handling is more strict, but i don't see any reason for this behaviour. Can anyone shed some light on this topic ?
I use the following code:
$.ajax({
type: "GET",
url: "someFile.php",
data: "nt="+ (new Date().getTime()),
async: true,
cache: false,
dataType: "json",
success: function(data)
{
// ...
},
error: function()
{
// ...
}