Click to See Complete Forum and Search --> : How to cancel a search


scottjsn
10-03-2007, 03:29 PM
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