Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > HTML, XML, Javascript, AJAX

Reply
 
LinkBack Thread Tools Display Modes
Old 06-10-2009, 09:58 AM   #1 (permalink)
Kaji
Code Monkey
 
Kaji's Avatar
 
Join Date: Mar 2009
Location: San Jose, CA
Posts: 30
Kaji is on a distinguished road
Send a message via AIM to Kaji Send a message via MSN to Kaji
Script to provide list of suggestions via onChange?

I'm dealing with a form where there are too many possible values for a SELECT drop list, however at the same time I want to direct the user to a value already entered into a MySQL database so that the rest of the site knows how to process the input. Trying to get something similar to the list Facebook's searchbox creates when you type someone's name into it. Searching for tutorials hasn't led to anything on this point; does anyone have any insight into how to make this work?
Kaji is offline   Reply With Quote
Old 06-10-2009, 10:52 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,706
sde is on a distinguished road
i believe the feature you're talking about is called autocomplete. i don't have any great insight, but there are some libraries out there which you can work with.
__________________
Mike
sde is offline   Reply With Quote
Old 06-10-2009, 11:03 AM   #3 (permalink)
Kaji
Code Monkey
 
Kaji's Avatar
 
Join Date: Mar 2009
Location: San Jose, CA
Posts: 30
Kaji is on a distinguished road
Send a message via AIM to Kaji Send a message via MSN to Kaji
Awesome, that's taking me much closer to what I want. Thanks for the tip!

For anybody else trying to figure this out, here are a couple links that I just found for it:
Javascript AutoComplete
CodeProject: Auto-complete Control. Free source code and programming help
Kaji is offline   Reply With Quote
Old 06-10-2009, 11:14 AM   #4 (permalink)
Kaji
Code Monkey
 
Kaji's Avatar
 
Join Date: Mar 2009
Location: San Jose, CA
Posts: 30
Kaji is on a distinguished road
Send a message via AIM to Kaji Send a message via MSN to Kaji
All right, found what I'm looking for! Ajaxian » Facebook Style Input Box
Kaji is offline   Reply With Quote
Old 06-21-2009, 11:05 PM   #5 (permalink)
Kaji
Code Monkey
 
Kaji's Avatar
 
Join Date: Mar 2009
Location: San Jose, CA
Posts: 30
Kaji is on a distinguished road
Send a message via AIM to Kaji Send a message via MSN to Kaji
Revisiting this one again; I've managed to strip down the script in the last post to the bare essentials and switch out my own data for the default, but when I try to integrate it with my existing forms it turns out to be incongruous relative to the rest, both because it resizes and because the borders are much further spaced than the default input field height and width. Any suggestions on how to make it work?

Also, if someone can tell me what to strike so it won't tell me that the e-mail field for the data entries is undefined, that would be great, too!

Thanks again!
Kaji is offline   Reply With Quote
Reply

Bookmarks

Tags
forms, javascript

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
web hosting suggestions? dazz williams HTML, XML, Javascript, AJAX 7 05-18-2006 07:44 PM
Suggestions For Practice Feis Standard C, C++ 1 04-19-2005 02:44 AM
PC suggestions please!! ashish Lounge 6 02-03-2005 07:58 PM
Hi guys, need some suggestions M3GAPL3X Lounge 1 05-29-2003 12:02 PM


All times are GMT -8. The time now is 05:30 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting