hey guys ,
i know how to load a page in jquery and somehow i know how to use success but what if that page failed
im looking for a way to show loader image before the page loaded and if the page failed show a message
this is the function i wrote :
$(document).ready(function(){
$("#loading").html("<img src='images/preload.gif' />");
$(".thumb").load("stat.html");
});
now i want to change it in a way it shows preloader and the message if failed