I have a form where user can enter search criteria and then press search button. But user can also stop the search operation by pressing 'cancel search' button.

My problem is once user presses the 'cancel search' button to stop the search operation , and then if user does the search again , it is very very slow.

Currently I execute a javascript function for 'cancelsearch' which contains no code , basically a dummy function. It looks like

cancelSearch() {
// Dummy function
}

Thanks for any help.

Member Avatar for GreenDay2001

So what code do you use for Cancel Search(which make another search slow).

I execute a function which has no code in it. It looks like

cancelSearch {

}

Thanks

Member Avatar for GreenDay2001

then how does your cancel search button works as you said

My problem is once user presses the 'cancel search' button to stop the search operation , and then if user does the search again , it is very very slow.

It might help if we can see all of the coding so that we can determine where the error lies.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.