I have a search page, and the results grid is AJAX'd using the ProxyManager.
The problem I have is this - sometimes, if the user enters very broad search terms, the search can take a very long time, or even time out. In these cases, I want to be able to cancel the search (after the search is already in progress).
I've been searching on the web and on these forums all day, and I think the short answer to my question is - you can't cancel an AJAX request once it's been started. If that is true, then my next step is to look for some workaround or alternative.
Right now we are attempting to simply reload the page, but is throwing an error:
An unknown error occurred while processing the request on the server. The status code returned from the server was: 0
I am assuming this error is being displayed because we are trying to refresh the page while the AJAX request is still running. Does that seem correct?
Do you have any ideas on how I can make this error go away, or perhaps some other idea on how to get around the problem of not being able to cancel the search?
The problem I have is this - sometimes, if the user enters very broad search terms, the search can take a very long time, or even time out. In these cases, I want to be able to cancel the search (after the search is already in progress).
I've been searching on the web and on these forums all day, and I think the short answer to my question is - you can't cancel an AJAX request once it's been started. If that is true, then my next step is to look for some workaround or alternative.
Right now we are attempting to simply reload the page, but is throwing an error:
An unknown error occurred while processing the request on the server. The status code returned from the server was: 0
I am assuming this error is being displayed because we are trying to refresh the page while the AJAX request is still running. Does that seem correct?
Do you have any ideas on how I can make this error go away, or perhaps some other idea on how to get around the problem of not being able to cancel the search?