Re: Cancelling a Search

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Dec 2006
Posts: 2
Reputation: sanjeevverma is an unknown quantity at this point 
Solved Threads: 0
sanjeevverma sanjeevverma is offline Offline
Newbie Poster

Re: Cancelling a Search

 
0
  #1
Dec 5th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Cancelling a Search

 
0
  #2
Dec 7th, 2006
So what code do you use for Cancel Search(which make another search slow).
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 2
Reputation: sanjeevverma is an unknown quantity at this point 
Solved Threads: 0
sanjeevverma sanjeevverma is offline Offline
Newbie Poster

Re: Cancelling a Search

 
0
  #3
Dec 7th, 2006
I execute a function which has no code in it. It looks like

cancelSearch {

}

Thanks
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Cancelling a Search

 
0
  #4
Dec 9th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Cancelling a Search

 
0
  #5
Dec 10th, 2006
It might help if we can see all of the coding so that we can determine where the error lies.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC