[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

06/04/2003 at 04:11AM PDT, ID: 20636388
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

2 Dynamic Linked Dropdowns

Asked by bradderick in ColdFusion Application Server

Tags: linked, cfselect

Hi,

I am trying to create two dynamically linked drop down menus. IE Person selects product category in first drop down menu and then sub categories for that major category are automatically populated into the second drop down box.

I know there has been a few questions along similar lines to this but my knowledge of JS is just not good enough to hack them into the code on my page. Here is what i've got so far:

<cfquery name="ClasCategories" DBTYPE="DYNAMIC" datasource="mc">
SELECT ProductCategoryID, CatDescription
FROM dbo.ProductCategory
ORDER BY CatDescription ASC
</cfquery>

<cfquery name = "ClasSubCategories" DBTYPE="Dynamic" DATASOURCE="mc">
SELECT SubcatID, SubCatdescription, ProductCategoryID
FROM dbo.ProductSubCategory
ORDER BY SubCatDescription ASC
</cfquery>


    <TR>
      <TD WIDTH="116" HEIGHT="26"><STRONG><FONT COLOR="#000000">Category</FONT></STRONG></TD>
      <TD WIDTH="463" VALIGN="BOTTOM">
        <CFSELECT NAME="ProdCategory" required = "Yes" CLASS="dropdownmenu" onChange= "DYNAMIC CODE NEEDS TO GO HERE (i think)" >
          <OPTION VALUE="0">Select Category</OPTION>
          <CFOUTPUT QUERY="clascategories">
            <OPTION VALUE="#ProductCategoryID#">#CatDescription#</OPTION>
          </CFOUTPUT> </CFSELECT> &nbsp; *</TD>
    </TR>
    <TR>
      <TD HEIGHT="40"><STRONG>Sub-Category</STRONG></TD>

      <TD VALIGN="MIDDLE">
        <CFSELECT NAME="Subcategory" required ="Yes" CLASS="dropdownmenu">
          <OPTION VALUE="0">Select Sub-Category</OPTION>
              <CFOUTPUT QUERY="ClasSubCategories">
              <OPTION VALUE="#SubCatID#">#SubCatDescription#</OPTION>
              </CFOUTPUT>      
        </CFSELECT> &nbsp; *</TD>
    </TR>

----end code cut----

Any help would be great.

Cheers,
Brad
 
Keywords: 2 Dynamic Linked Dropdowns
 
Loading Advertisement...
 
[+][-]06/04/03 04:21 AM, ID: 8647264

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/04/03 04:33 AM, ID: 8647357

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/04/03 05:03 AM, ID: 8647592

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/04/03 05:10 AM, ID: 8647627

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/04/03 05:20 AM, ID: 8647704

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/04/03 05:30 AM, ID: 8647786

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Application Server
Tags: linked, cfselect
Sign Up Now!
Solution Provided By: anandkp
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06/04/03 05:55 AM, ID: 8647976

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/04/03 08:33 AM, ID: 8649488

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/04/03 05:38 PM, ID: 8653331

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/04/03 08:22 PM, ID: 8653952

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/04/03 09:48 PM, ID: 8654264

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/04/03 10:39 PM, ID: 8654445

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/05/03 12:44 AM, ID: 8654879

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/05/03 02:02 AM, ID: 8655253

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/27/03 06:37 PM, ID: 9237053

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/27/03 06:49 PM, ID: 9237098

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/27/03 07:01 PM, ID: 9237160

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/27/03 07:05 PM, ID: 9237171

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/27/03 09:53 PM, ID: 9237747

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/28/03 03:18 AM, ID: 9238983

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74