PDA

View Full Version : Textbox hint without jquery


dajohnson1s
03-11-2009, 07:17 PM
I am wanting to add a textbox hint for in my driving directions textbox in a google maps app I have made.

I found a jquery example of exactly what I want: jquery textbox hint (http://remysharp.com/wp-content/uploads/2007/01/input_hint.html)

I am not familiar with jquery framework, is it possible to do this an alternate way?

Old Pedant
03-11-2009, 10:03 PM
Can just do it with simple AJAX.

On each keyup, you send a query to the server with what the user has typed so far and have the server return with a simple list of choices. The list doesn't need to be XML; no reason it can't simply be a single string with a delimiter (e.g., a semicolon or comma between choices...or maybe a newline).

Henley
03-11-2009, 10:12 PM
See, this example:

http://www.w3schools.com/ajax/ajax_example_suggest.asp