Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-11-2009, 06:17 PM   PM User | #1
dajohnson1s
Regular Coder

 
Join Date: Sep 2007
Posts: 241
Thanks: 6
Thanked 0 Times in 0 Posts
dajohnson1s is an unknown quantity at this point
Textbox hint without jquery

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

I am not familiar with jquery framework, is it possible to do this an alternate way?
dajohnson1s is offline   Reply With Quote
Old 03-11-2009, 09:03 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,248
Thanks: 59
Thanked 3,999 Times in 3,968 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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).
Old Pedant is offline   Reply With Quote
Old 03-11-2009, 09:12 PM   PM User | #3
Henley
Banned

 
Join Date: Feb 2009
Posts: 36
Thanks: 0
Thanked 7 Times in 7 Posts
Henley can only hope to improve
See, this example:

http://www.w3schools.com/ajax/ajax_example_suggest.asp
Henley is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:16 AM.


Advertisement
Log in to turn off these ads.