I have this code requesting some folder info from a mysql DB:
function gotoDir(pmcat_id, pcat_id){ $(\'#slideshowContainer\').html(\'
You should use $.ajax() and $.ajaxError(), then with "ajaxComplete" you can check if your request timedout, or succeded.
$.ajax()
$.ajaxError()
timedout
succeded
Source: jQuery API