Forum Moderators: coopster
First, make sure "function list" is selected in the "in the" list right next to the "search for" option. Then when you start typing in a function it automagically narrows the list based on letters entered. Sweet. I had a quick peek behind the scenes and the workhorse is a piece of js that I haven't had time to analyze yet:
[php.net...]
Truly a neat feature and time saver! I like it.
It's called a XMLHttpRequest - google for that+javascript :)
Added: Here's an apple developer article on it (not apple specific):
[developer.apple.com...]
Function list suggestions available[27-Dec-2004] Surely, some of our visitors are back at work for a few days between holidays, and hopefully they will find our post-christmas gift useful. The function list suggestions we started to test a year ago seemed to be working better as some bugs were found and fixed, so it was time to make the result available on all php.net pages.
Whenever you type something into the search field, while having the function list search option selected, you will get a list of suggested functions starting with the letters you typed in. You can browse the list with the up/down keys, and you will be able to autocomplete the function name with the spacebar.
If you are not interested in this feature, you can turn it off for yourself on the My PHP.net [php.net] page. More information [php.net] about is available on the search page.
So, you could turn it off if it doesn't suit your taste. However, I don't understand what you mean by the search not "sticking". It stays in my list when I arrive at the function page I searched and clicked on...
I never realized Google Suggest was out there. That's nice too. They don't carry the entire block of "partially matched" items into the following page like PHP does (view source once you have clicked and landed on a function page). I also like the background color change on mouseover at Google. PHP only does that on a cursor roll via keyboard arrow keys (in my browser at least).
It's a tradeoff. Normally, when IE encounters an input field with a name it has seen before it will display the combined input history for all fields with that particular name. Some other browsers do the same thing. ALT+ArrowDown usually calls this list, as well as starting to type.
The thing is - if you make a div appear that looks like this autocomplete feature, and is positioned at the same place, those two features will clash. So, browser autocomplete must be turned off first.
You do that by adding autocomplete="off" to the input field code, btw.