Actually what i am trying to do that is to search some data as per users' entries.
Firstly i am fetching the whole data from the database and keeping in a hidden table then as user gives the search string then i manipulate from the hidden table and displaying those into visible one. Now suppose i have huge data and i am performing sequential search so a large no of iterations is going on whenever key pressed. So it slows down the whole process i mean the entered letters are not coming smoothly after the whole search finished then the entered keys displayed in the text box. and if i type so fast then in the mean time browser hanged.
Now i want if user presses a key then search starts and if user again presses key before iteration is over then iteration should stop and start from the begining as per what user typed. So how do i capture that event if the iteration does not end.
Please suggest something.
Firstly i am fetching the whole data from the database and keeping in a hidden table then as user gives the search string then i manipulate from the hidden table and displaying those into visible one. Now suppose i have huge data and i am performing sequential search so a large no of iterations is going on whenever key pressed. So it slows down the whole process i mean the entered letters are not coming smoothly after the whole search finished then the entered keys displayed in the text box. and if i type so fast then in the mean time browser hanged.
Now i want if user presses a key then search starts and if user again presses key before iteration is over then iteration should stop and start from the begining as per what user typed. So how do i capture that event if the iteration does not end.
Please suggest something.
Comment