954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Re: Cancelling a Search

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.

sanjeevverma
Newbie Poster
2 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

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

vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42
 

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

cancelSearch {

}

Thanks

sanjeevverma
Newbie Poster
2 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

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.

vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42
 

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

FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You