jQuery: how to enable timeout for $.ajax({dataType:'jsonp'... ? Is there a solution? http://jsfiddle.net/laukstein/2wcpU/4
$.ajax({ type:"GET", url:'http://lab.laukstein.com/ajax-seo/.json', dataType:'jsonp', timeout:200, // Not working with dataType:'jsonp' success:function(data){$('#content').html(data.content);}, error:function(request,status,error){$('#content').html('request failed');} });
I do not like to use some plugins for this, for example http://code.google.com/p/jquery-jsonp .
jquery jsonp ajax timeout
Binyamin
source share