I have this simple code based on some examples from Ben or Ray.
Test.cfm
<cfform>
<cfinput type="text" name="locationname"
autosuggest="cfc:test.findLocation({cfautosuggestvalue})" />
</cfform>
Test.cfc
<cfcomponent output="false">
<!--- Lookup used for auto suggest --->
<cffunction name="findLocation" access="remote" returntype="query">
<cfargument name="search" type="any" required="false" default="">
<!--- Define variables --->
<cfset var local = structNew() />
<!--- Query Location Table --->
<cfquery datasource="play" name="local.query">
select suburb + ' ' + state + ' ' + postCode as
location
from Location
where suburb like '#arguments.search#%'
order by suburb, state, postcode
</cfquery>
<!--- And return it --->
<cfreturn local.query>
</cffunction>
</cfcomponent>
Both files are in the same directory, I get
Error invoking CFC /test.cfc : Not Found
Then it tells me to enable debugging. I've done this, enabled it in
administrator, passed ?cfdebug into test.cfm and I don't get any debug
window.
This example is running of an IIS virtual directory Play if that makes any
difference
http://localhost/play/test.cfm?cfdebug
I must be missing something obvious.
Regards
Dale Fraser
http://dalefraser.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285136
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4