timeout works! but when timeout I want to run a function. do you have any ideas?
//when you define datatype as JSON, you can do it. But my response from xajax.php is a data: "echo $_GET['name'];"
$.ajax({
type: "GET",
url: "xajax.php",
timeout: 100,
data: "name=John&location=Boston",
success: function(msg){ alert( "Data Saved: " + msg ); }
//like this:
//timeout: function(){location.href='blabla.html'}