The 'success' is called after the response has been returned from server, no matter what the result is. Due to the network issues, you may get the timeout information from 'success' function. So you need to detect if the data is what you expect.
In my test, success not called!In my tomcat server, I create a html page with javascript below, and then visit the page. When submit form, 'success' is called. but when I stop tomcat, and submit the form, 'success' never called!
The code:
$(function(){
$("#frm").form({
url: "
http://localhost:3292/test/test.htm",
success: function (data) {
alert("success");
}
});
});