• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Multiple Dropdown Issue

New Here ,
Aug 20, 2008 Aug 20, 2008

Copy link to clipboard

Copied

What I have is a form that has a dropdown with a list of letters, the alphabet, and what I want to do is when the user selects a letter, I want the a query to be run to populate the second dropdown with the list of everyone last name that starts with the letter that the user just selected With Out re-loading the page or javascript. The name table has over 10,000 rows so you can see why I do not want them in the dropdown to start with and why a javascript array will not work for this aplication. Any Ideas?
TOPICS
Advanced techniques

Views

749

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 20, 2008 Aug 20, 2008
autosuggest. cf8 has that functionality, too.
if you are not on cf8, look into using Rob Gonda's AjaxCFC.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Votes

Translate

Translate
LEGEND ,
Aug 20, 2008 Aug 20, 2008

Copy link to clipboard

Copied

If your requirements do not allow you to load all the data on the first
request, then your choice is to do this in multiple steps with a new
request-response cycle after the user selects the letter.

If you want to make this nicer you can hide that request-response behind
the scenes by using AJAX techniques.

This type of task is very common and well discussed with many examples
readily available through a bit of searching.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 20, 2008 Aug 20, 2008

Copy link to clipboard

Copied

Well, I have done quite abit of searching and have not found anything useful. Do you have any links you could share?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2008 Aug 20, 2008

Copy link to clipboard

Copied

You do not specify your system so I do not know what capabilities you
have available. Here is a link making use of CF8's built in AJAX
functionality. If you do not have 8, then you will have to look at some
other options. I found many other likely looking resources on the
Google results from a search for 'ajax related select'.

http://www.forta.com/blog/index.cfm/2007/5/31/ColdFusion-Ajax-Tutorial-2-Related-Selects

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2008 Aug 20, 2008

Copy link to clipboard

Copied

Even if you can get it to work, you are still going to have problems in that your user is presented with a drop down of several hundred choices once they choose a letter. You may want to consider another approach.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 20, 2008 Aug 20, 2008

Copy link to clipboard

Copied

Good Point. I can not think of any other better way to really do it. Maybe I am having a brain fade today. Maybe if I have them type in the first 2 or 3 letters in a text field, then to do a search that way. Not sure.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2008 Aug 20, 2008

Copy link to clipboard

Copied

autosuggest. cf8 has that functionality, too.
if you are not on cf8, look into using Rob Gonda's AjaxCFC.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 20, 2008 Aug 20, 2008

Copy link to clipboard

Copied

Thanks for the feedback, from both of you. I will check into this

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 20, 2008 Aug 20, 2008

Copy link to clipboard

Copied

Will be using CF8 for this project

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 22, 2008 Aug 22, 2008

Copy link to clipboard

Copied

LATEST
Thanks for the Autosuggest Idea. It works great for what I want to do. Thanks again. I also got the update from one dropdown to another working as well, but I like the autosuggest better.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation