I have tried this also and every combination of what I could think of, hard
when I can't get the debugging working.

<cfinput type="text" name="locationname"
autosuggest="cfc:play.test.findLocation({cfautosuggestvalue})" />

Neither work, and both find the cfc, as if I change test to say test2 it
gets an error loading the .cfm saying can't find the component, very
strange.

Anyone tried this under CF8 final with IIS under Vista virtual directory. I
think that something is not configured correctly since the debugging won't
work either.

Regards
Dale Fraser

http://dalefraser.blogspot.com



-----Original Message-----
From: Brian Kotek [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 2 August 2007 4:07 PM
To: CF-Talk
Subject: Re: Ajax Simple Example.

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
>
>
>
>
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285142
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