I call the load method. There are some occasions when the page it calls does not exist. In firebug I can see the 404 status is returned. How can I access this status in jQuery so I can handle it?
$("#section-main-wrapper").load(uri);
I call the load method. There are some occasions when the page it calls does not exist. In firebug I can see the 404 status is returned. How can I access this status in jQuery so I can handle it?
$("#section-main-wrapper").load(uri);
Pass in a callback function:
http://docs.jquery.com/Ajax/load