| | |
Problem in dropdown list display
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2008
Posts: 1
Reputation:
Solved Threads: 0
Hi am new to cold fusion.
AM deigning a page where i need to list company names in dropdown1 and when i select any company i have to list the vendors belonging to the particularcompany in dropdown2.
When i select a partcular vendori n dropdown2 ,the address of the vendors must be displayed in the given 2 textboxes
I know how to accomplish this in java script but i wnt everyhing to be done in cold fusion.Can anyone help me in doing this by giving a sample code and am using a stored procedure from server sde instead of writing the select queries
AM deigning a page where i need to list company names in dropdown1 and when i select any company i have to list the vendors belonging to the particularcompany in dropdown2.
When i select a partcular vendori n dropdown2 ,the address of the vendors must be displayed in the given 2 textboxes
I know how to accomplish this in java script but i wnt everyhing to be done in cold fusion.Can anyone help me in doing this by giving a sample code and am using a stored procedure from server sde instead of writing the select queries
•
•
Join Date: Dec 2008
Posts: 2
Reputation:
Solved Threads: 0
A CFC with 3 methods that can give you the companies,vendors,address
If you want to do with a CFM then use it like
want more detail... ask..
All the best
ColdFusion Syntax (Toggle Plain Text)
<cfform name="detailsForm"> <cfselect name="company" bind="cfc:myCFC.getCompanies()" bindonload="true"> <option name="0">--Select Company--</option> </cfselect> <cfselect name="vendor" bind="cfc:myCFC.getvendor({company})"> <option name="0">--Select Vendor--</option> </cfselect> <cfinput name="address" type="text" label="Address:" bind="cfc:myCFC.getvendorAddress({vendor})"> </cfform>
If you want to do with a CFM then use it like
ColdFusion Syntax (Toggle Plain Text)
bind="url:logic_page.cfm?getme="companies&of="; .... bind="url:logic_page.cfm?getme="vendor&of={company}" ...
want more detail... ask..
All the best
•
•
Join Date: Sep 2009
Posts: 3
Reputation:
Solved Threads: 0
I've got a problem displaying cfselect dropdowns. I have several dropdowns, when choose one base on the selection before it, it works perfect. like country-state-city-zip.
But my problems, I need to let user able to choose from any dropdown and redraw others.
ie. Gender- school- sportType - gpa are dropdown selections. These dropdowns are populated from the same table by selecting distinct record. Just wondering if there is a way to populate the dropdowns matter user start from any dropdown first. Can I achieve it using cfselect?
Any help would be greatly appreciated.
But my problems, I need to let user able to choose from any dropdown and redraw others.
ie. Gender- school- sportType - gpa are dropdown selections. These dropdowns are populated from the same table by selecting distinct record. Just wondering if there is a way to populate the dropdowns matter user start from any dropdown first. Can I achieve it using cfselect?
Any help would be greatly appreciated.
![]() |
Similar Threads
- php script for dropdown to fetch DB list and then Tables (PHP)
- dropdown list need help (PHP)
- Hi guys please clear my doubt. (ASP.NET)
- Select tag, making dropdown larger than tag (HTML and CSS)
- Dropdown appears short in IE (ASP.NET)
- Convert database values into Dropdown List (PHP)
- Storing dynamic form values in Arrays for display & insert (PHP)
- Source Code that don't work? (Java)
- Hey check out my prog. It has an error can u find it? (Java)
- DropDown List (VB.NET)
Other Threads in the ColdFusion Forum
- Previous Thread: Ajax Issue
- Next Thread: dateDiff problem
| Thread Tools | Search this Thread |





