[RESOLVED] search listing
How would I create a search box for an SQL database that could list or predict what I am searching for in much the same way google or other search engines list previous searches?
So if I'm searching names and type 'te' a list of all the names that start 'te' eg technician technique etc shown below. Note that I have not submitted the form and I'm continuing to type the name.
Re: [RESOLVED] search listing
JavaScript is used to send the text which is typed to the server using an XMLHttpRequest object. The server runs some script (perhaps executing an SQL query) to create the list of suggestions, which is sent back to the client in response. DOM (Document Object Model) manipulation is used to present the list of suggestions to the user.
Collectively, this technique is usually referred to as 'Ajax' (Asynchronous JavaScript and XML). XML need not be the language spoken between client and server, however; you might choose to use JSON or even plain text instead.