How to cancel a search
There are 2 buttons on a JSP page: One is called Search, another is called Cancel.
When the Search button is pressed, it will trigger an AJAX call, this ajax will call a Java function, while this java function makes a function call to the Oracle database (store procedure/function).
This searching process will take a while... At the mean time, the user wants to cancel the searching. So the user pressed the Cancel button.
Here, I want this cancel process to do two things: 1) to cancel the call to Oracle database; 2) to cancel the Ajax process;
How can I do that?
Thanks
Scott