hello. I'm not good at English,but I'm trying to describe it clearly,please keep pacience. the suggestion never appear when I type something such as "abc" in the field,but when I delete them all with "backspace" key quickly it appears.it will not appear if I delete them slowly.I test it with IE and firefox,they are same result.
another question:it seems the start_check never works when I use ajax fetch data.it gets data when I input the first character despite I set it like this: this.start_check = 2; it will overload the server. here is the demo:http://220.127.116.11/tickets/index_ajax.html[^] thank any ideas.
Thanks a lot for the reply. I am trying to add the control into one of my gridview. For the first row, it is working but for the second the suggestion list is not coming at all.. Please help me to find a solution.
The control is inside the EditItemTemplate of gridview.
In this data.php, i created the node <listdata></listdata> with each val1,key1 delimited by |. Now, when i used your script to fetch data from this file, it became very slow, taking almost 10 seconds to bring up the suggestion. I am sure, something I am doing is not correct. Could you please help here. I'd like to mention that file is holding some 1000+ records.
Also, i'm no pro, just working on the first project.
Thanks in advance
P.S.--> I tried hard coding the array in autosuggest.js file (the file size reached 191kb) the script worked fine. normal speed. But I don't think its the right way to do it. because the array needs to be updated everytime data changes in database table
This doesn't work properly. In this case there are no suggestions given when an input contains a character a. I think now a delimeter can only be a single character and not a string. People give frequently inputs like "apple and pear". I'd like to make this function more intuitive by the string " and " acting as delimiter.