this is currently what i have, if the request times out there is no message returned.
$.getJSON(jsonUrl, function(data){
/*here*/
if (data.stat != "ok") { //checks if query was valid
$('#content').html('content not available');
return;
}
else {...Do Code...}
});
My question is, can I (and how) ask Jquery to retry up to 2 more times if the Json feed is not returned, and if the feed is returned how do i check if the json data itself is not faulty and in correct json syntax.
Finally does everything after /*here*/
execute right after the entirety of the feed is returned?