Hi,
I am working on a web page using php. I need an autocomplete drop down list, i.e. when I type "a", all the entries beginning with "a" show in order, then I type "n", then all entries begins with "an" show in order, and so on.
I have used two ways to do autocomplete list in web pages before:
1. I have built an ActiveX control of an autocomplete combobox in VB, then use it is ASP page.
2. I have used Javascript building such a list.
Both methods work well. However, the problem with method 1 is that user needs to allow the IE to download the control, which my boss does not like. The problem with method 2 is that it is way too slow when I got several thousand of entries in the list.
My boss wants to me try sth in PHP. I've been searching online cannot find a way to do it in PHP yet. Anyone has any suggestion or advice, I'll really appreciate it.
Thanks very much.
Cindy
I am working on a web page using php. I need an autocomplete drop down list, i.e. when I type "a", all the entries beginning with "a" show in order, then I type "n", then all entries begins with "an" show in order, and so on.
I have used two ways to do autocomplete list in web pages before:
1. I have built an ActiveX control of an autocomplete combobox in VB, then use it is ASP page.
2. I have used Javascript building such a list.
Both methods work well. However, the problem with method 1 is that user needs to allow the IE to download the control, which my boss does not like. The problem with method 2 is that it is way too slow when I got several thousand of entries in the list.
My boss wants to me try sth in PHP. I've been searching online cannot find a way to do it in PHP yet. Anyone has any suggestion or advice, I'll really appreciate it.
Thanks very much.
Cindy