var customarray =
I need to ask you how to handle a dynamic array. for example: I need to update the array every time the user press key, when I did this the array updated implicitly but the dropdown list didn't updated.
Actually, I think I need to do something like "refresh" for the drop down list.
Fantastic script- it does a lot of what I want and then more!
One question, though... why does the dropdown's "scroll down" functionality using the keyboard keep the highlight at the top part of the dropdown?
Wouldn't the more accepted practice be to let the highlight bar travel down the popup, then continue scrolling down from there, revealing new elements while the bottom row (instead of top) is highlighted?
Having a problem with the location of the autosuggest div when the parent page have scrollbar.
When using the code on a page that has a scrollbar, if you slightly scroll down the parent page, and then try to use the autosuggest, the div does not appear under the appropriate text box it appears somewhere else - sometimes it's over the text box completely so you can't continue typing in your query.
The autocomplete doesn't position itself correctly if the user increases the size of the font on the page. By increasing the font size, I mean when the user does a Ctrl++ or Ctrl+- key combination in Chrome or Firefox.
By reading the code, it seems like the autocomplete is being drawn with pixel as its unit of drawing. Should it be changed to the em unit?
Great work on the auto-suggest. Lots of patience to get something that surpass the competition out there (and its free)!
Would it be possible to display the auto-suggest control when the textbox gets the focus and its empty? If so, how easy is it to do? I've tried a couple of combinations like actb_generate() followed by actb_table_highlight() without any luck.
I had a second question? If the word typed in the textbox doesn't exits in the auto-suggest control, would it be possible to change the background color of the textbox (ex: red). Where should I look in the code to implement such a feature?
Would it be possible to display the auto-suggest control when the textbox gets the focus and its empty?
You (almost) got it now - see the example in the download archive and press down key; all you have is to transfer the code from actb_checkkey method to a new function that will be called onfocus (see construct method). Also - it works only with client-side arrays.
Louis-Philippe Carignan wrote:
If the word typed in the textbox doesn't exits in the auto-suggest control, would it be possible to change the background color of the textbox (ex: red).
Look at the following block at the start of actb_generate method:
This was going to be my next questions. Have implimented it and it works fine but once its turned to red even when the text returns a positive search it stays red. How can we get it to go back to white if a positive result is found.
Hi great script, have it installed in test and it works! The only problem I have is the speed that it returns the suggestions.
I am accessing a DB with about 30,000 records in, a list of locations that we provide the service in. When I type in it seems to take a long time to get the suggestion, even though when I do the exact same search in raw PHP the results are almost instant.
I have also noticed that it seems to be doing searches after every char is enter after the first three and when I set this.actb_fullRefresh = false; i get no results
Please can you offer some help in how to speed it up
Here is the test link you can see it working http://www.gostarmedia.com/aatest/autosuggest.php