cfselect bindings
I am trying to do a bind with a cfselect, below is the code i have so far:
Queries.cfc
<cfcomponent>
<cffunction name="getStates" access="remote" returntype="array" output="no">
<cfset var data="">
<cfset var result=ArrayNew(2)>
<cfset var i=0>
<cfquery name="data" datasource="#request.dsn#">
SELECT abbr,state
FROM tbl_zips
</cfquery>
<cfloop index="i" from="1" to="#data.RecordCount#">
<cfset result[1]=data.abbr>
<cfset result[2]=data.state>
</cfloop>
<cfreturn result>
</cffunction>
</cfcomponent>
================================================================================
test.cfm
<cfform name="testForm" action="" method="post">
<cfselect name="state" bind="cfc:cfc.Queries.getStates()" bindonload="true"/>
</cfform>
When i run the test.cfm file, the drop down never populates. I also turned on debugging and i don't even see it trying to call the CFC. But if i manually invoke the component using cfinvoke, it grabs the data.
Has anyone ever come across this issue before?
