hook suggestions to input field, find a way to hide them when hiding prompt box
monona/gary.js and monona/hiegel/gary.js have been merged, need to get upmc/gary.js and monona/tke/gary.js included in the refresh. The latest code is in hiegel to check for an autocomplete style sheet and if not found, create one by default.
Same holds true for monona/hiegel/forms.js, it got a lot of updates for autocomplete that need to be propagated back to upmc as well as other places where these things live.
Autocomplete KB event handler
The autocomplete KB handler should get priority over the prompt KB handler so that if we decide the esc should close the suggestions, that happens first, before escape resets the prompt.
Maybe escape should never reset the suggestions
Maybe when you blur out of an ac field, you should hide the suggestions and when you focus back in, you should rebuild/show, the suggestions, if any are cached.
The same code that sets/resets the "selected" class, can do the same for the suggestions div.
Does it make sense to leave a suggestion div, propperly sized an loaded, attached to each input field that contains an autocomplete attribute (or class?).
Need to make sure that the suggestion box disappears when appropriate
When dynamically setting z-index, try to find effective and add 100 or something. Prompt has a high one, but autocomplete has to have a higher one if it is going to go over the top of it.
Instead of attaching suggestioins to the document.body, attach to the div containing the form so that if someone grabs the form and drags, the suggestions move with and so the z-index of the suggestions will be relative to the for pane, not the entire document
Find or write a version of auto complete that respects a space at the end of a mask
Add a KB handler to AC that allows up and down arrows through the list of suggestions
Abstract autocomplete code for concatonating seperate db fields into one data entry fiels. City, State and Zip for example
Need a parm that states if this is a pick list or an autocomplete, if a pick list, refuse characters that don't match an existing record, and auto select when the list gets down to one
Consider the wisdom of moving autocomplete to a seperate source file again
ac should be able to be used independantly of forms.
would need to find a way to ingegrate with forms
How can they each know the others namespace so that they can call back and forth when needed>
forms would need to ignore autocomplete attributes if autocomplete was not loaded by the time we get to domloaded event. It would not have to be initialize first, just present.
Need to findout who is clobbering autocomplete attributes and forcing me to use xautocomplete in this test
Dont need message div
Can only pick from given options
Consider the option of a local array, rather than calling the db
Consider the option of named parms to complete the data collection, don't have a specific example in mind, but if you did a /gr and picked from a list of reports to run, some my take no parms, while others may need an as of date, and/or a period or and end date