You sure you tried bindonload=false? It looks to still be firing with no value. You can try editing your CFC's getStates method to make country optional. If the value is blank, return nothing.
On Sat, Aug 20, 2011 at 7:22 AM, Pete Ruckelshaus <[email protected]> wrote: > > Forgot a detail in my original email, this is CF9. > > Ray, I had also tried that, still no dice. I also found the post on your > blog about the JavaScript workaround, and that didn't work, either. Not > sure if it makes a difference, but this form is inside of a modal CFWINDOW. > > Here's the output from the logger: > > info:*bind*: Assigned bind value: '' to country.value > > info:*http*: CFC invocation response: > {"COLUMNS":["COUNTRY","PRINTABLE_NAME"],"DATA":[["x"," - Select Country - > "],["US","United States"]]} > > info:*http*: Replaced markup for element: searchwin_body > > error:*bind*: Bind failed, element not found: country > > info:*http*: HTTP GET > /site/extensions/cfc/utils.cfc?method=getCountries&returnFormat=json&argumentCollection=%7B%7D&_cf_nodebug=true&_cf_nocache=true&_cf_clientid=DE983424FCCE057CC3F320BCC23EFD60&_cf_rc=2 > > info:*http*: Invoking CFC: /site/extensions/cfc/utils.cfc , function: > getCountries , arguments: {} > > Thanks, > > Pete > > On Sat, Aug 20, 2011 at 8:13 AM, Raymond Camden > <[email protected]>wrote: > >> >> Because on page load, there _is_ no country. Your second drop down is >> firing immediately. Try adding bindOnLoad=false to the second drop >> down. >> >> On Fri, Aug 19, 2011 at 8:27 PM, Pete Ruckelshaus >> <[email protected]> wrote: >> > >> > Have a pair of related select lists...first one is country, then when the >> > country is selected, states load in the second select. The first select, >> > which gets its data from a CFC, works fine, but when the page loads, it >> > gives a "Bind failed, element not found: country" error. The pertinent >> > code: >> > >> > The form fields in the CFM page: >> > >> >> >> -- >> =========================================================================== >> Raymond Camden, Adobe Developer Evangelist >> >> Email : [email protected] >> Blog : www.coldfusionjedi.com >> Twitter: cfjedimast >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346876 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

