Current Position:Home > CFSELECT and BIND

CFSELECT and BIND

Update:11-30Source: network consolidation
Advertisement
Hi
I'm trying out cfselect with bind for the 1st time and I'm
having 1 issue...
I am trying to populate the 2nd cfselect with the zone_names
AFTER i have selected the country_name in the 1st cfselect.
the 2nd cfselect isnt populating!
My database looks like this...
All the data is in 1 table.
table name = zones
columns = zone_id, country_name, zone_name
My cfm page is fairly simple...
<cfform name="myform">
<table>
<tr>
<td>Select Media Type:</td>
<td><cfselect name="country_name"
bind="cfc:art.getCountries()"
bindonload="true" /></td>
</tr>
<tr>
<td>Select Art:</td>
<td><cfselect name="zone_name"
bind="cfc:art.getzones({zone_name})" /></td>
</tr>
</table>
</cfform>
I have also attached my CFC code.
My code probably isnt too neat right now, due to me spending
hours trying to get this right...
However, I would really appreciate someones help so that my
2nd cfselect populates correctly!
Thanks in advance
Delon

The Best Answer

Advertisement
Hi
I'm trying out cfselect with bind for the 1st time and I'm
having 1 issue...
I am trying to populate the 2nd cfselect with the zone_names
AFTER i have selected the country_name in the 1st cfselect.
the 2nd cfselect isnt populating!
My database looks like this...
All the data is in 1 table.
table name = zones
columns = zone_id, country_name, zone_name
My cfm page is fairly simple...
<cfform name="myform">
<table>
<tr>
<td>Select Media Type:</td>
<td><cfselect name="country_name"
bind="cfc:art.getCountries()"
bindonload="true" /></td>
</tr>
<tr>
<td>Select Art:</td>
<td><cfselect name="zone_name"
bind="cfc:art.getzones({zone_name})" /></td>
</tr>
</table>
</cfform>
I have also attached my CFC code.
My code probably isnt too neat right now, due to me spending
hours trying to get this right...
However, I would really appreciate someones help so that my
2nd cfselect populates correctly!
Thanks in advance
Delon
  • CFSELECT and BIND Update:11-30

    Hi I'm trying out cfselect with bind for the 1st time and I'm having 1 issue... I am trying to populate the 2nd cfselect with the zone_names AFTER i have selected the country_name in the 1st cfselect. the 2nd cfselect isnt populating! My database loo

  • Cfselect data binding with statically defined options Update:11-30

    I am having some trouble getting statically defined options to remain in my cfselects when I use binding in CF8 I have four cfselects: Continent, Country, State/Province, County The continent select is populated by a list in a database, and each subs

  • cfselect with bind to cfc works but is followed by 500 Jrun javax.servlet.ServletException Update:11-30

    All; This is driving me crazy.  I have a CFC with a function that returns countries via remote as JSON with the // prefix as Cold Fusion is configured. I call it with the following url www.mydomain.com/getCountriesAndStates.cfc?method=getCountries&re

  • Cfselect with bind truncates leading zero Update:11-30

    Banging my head against this one. I have two cfselect menus using bind. The first one populates the second. It's working fine except for this one wrinkle: the second select menu gets populated with zip codes. If they have leading zeroes (e.g. 02842)

  • Problem with bind in a CFSELECT Update:10-11

    I am trying to get a CFSELECT to populate using bind.  If I use: <CFSELECT bind="http://www.myDomain.com/CFC/file.cfc?method=getSizes({materialColor})"> </CFSELECT> my bind works... somewhat.  But if I use: <CFSELECT bind="cf

  • Does ColdFusion MX 7 have cfselect bind option? Update:11-30

    Hi everyone,                         In coldfsuion mx 7 does cfselect supports bind option which is supported by coldfusion 8.I have seen live docs for cfselect but in live docs it dint show any bind option for cfselect tag. If bind attribute is not

  • 3 cfselect with "loading please wait" information Update:10-11

    Hi I have 3 cfselect boxes bind to a component. 2nd select box is depend on the 1st and 3rd is depend on the 2nd. Its taking much time to load the select boxes and before loading all the information user is submitting the page, giving the errors. and

  • Cfdiv refreshes binding to radio buttons Update:11-30

    Hi, Fairly simple issue that I can't find much information about through google (just one report of it involving a workaround for a cfgrid rather than a cfdiv). I have a cfdiv that is bound to a cfselect and two radio buttons, ala: <cfdiv bind="ur

  • Cfselect add/sub entries Update:11-30

    I'm building a product selector application. You can see a demonstration under http://www.rename.ch/test_productSelector/test.cfm. Idea is, that one can select a product group and/or subgroup in the most left cfselect area. On selection, it automatic

  • CF9.01 AJAX errors Update:10-11

    We are trying to upgrade from CF8 to CF9 but some of our AJAX related code is failing intermittently. This code works fine in CF8.  Any insights would be greatly appreciated. Old Environment CF8.01 (including cumulative hotfix 4) Windows 2003 R2 Stan