How to Cause The Load Method To Fail
Hey,
I'm using jQuery with ASP.Net MVC (2.0).
I'm using jQuery's load method to dynamically submit data,
But I want to be able to cancel the request from the server and pass some error code.
I saw the load method has a success callback, but it is fired
after the data is loaded.
Also, the success callback has a textstatus parameter, but I couldnt force it to be anything but "success".
How can I cancel a load request from the server?
Thanks ahead,
--sternr