You need to specify the full dot-delimited path to the CFC from the web
root.

On 8/2/07, Dale Fraser <[EMAIL PROTECTED]> wrote:
>
> 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
>
>
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285138
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to