Hi, I am trying to implement a “auto fill/complete” /”Goggle suggest” function.
I found a great one at:
http://www.webreference.com/programming/javascript/ncz/column2/.
The code itself works beautifully. The problem, now, is this:
The script retracts the “list of suggestion’s” from this function:
function StateSuggestions() {
this.states = [
"Alabama", "Alaska", "Arizona", "Arkansas",
"California", "Colorado", "Connecticut", (and so on)
];
}
I want the “list of suggestion’s” to be retrieved from a database, handled by php, where the values (the array that holds the “list”) changes.
I tried using a XhttpRequest to get the values, and running them through the “eval()” function, without any luck.
I thought I give the problem a try at the forum to see if anyone knows what could be done. If else I have to build my own “auto-function” and I really do not want to do that, when the referred function otherwise works so well.
I would appreciate any input on this issue.