Autocomplete Textfield With AJAX And Php?Apr 23, 2007
I saw a neat demo example of this using script.aculo.us and ruby on rails framework to do autocomplete textfield.
but was wondering if there is anything to run similar on php platform (with AJAX/scriptalicious also doing same effects)?
My current regular old html dropdown list has thousands of clients currently and it is taking >10 seconds filling the <option> list, hence why i am looking to use a short autocomplete list to let user fill in clientname.
Since this page can be edited, i hope there is a framework that knows that fills the text in the textfield appropriately like all the demos i see online,
but it should also set a hidden form field with the ID of the client chosen.
so if they click Update, then i can use that clientID value to update the database. Also if the user erases the text (or maybe fills in half of the text but doesnt choose a client from drop down), the hidden form field clientID should be removed so i know the user is unsetting the optional field/ or hasnt chosen a client.... and i can accordingly update the clientID field to NULL in database.