Re: Ajax Simple Example.

2007-08-02 Thread Brian Kotek
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


Re: Ajax Simple Example.

2007-08-02 Thread AJ Mercer
I think it is looking for test.cfc in the root directory, not the play
directory


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







 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

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


RE: Ajax Simple Example.

2007-08-02 Thread Dale Fraser
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


RE: Ajax Simple Example.

2007-08-02 Thread Dale Fraser
I tried that also, get the same message.

I don't understand why or why the debug window won't show. I'm starting to
think this might be broken in the CF8 final.

PS: This list is still funny, got the reply before the question.

Regards
Dale Fraser

http://dalefraser.blogspot.com


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

I think it is looking for test.cfc in the root directory, not the play
directory


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







 



~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


Re: Ajax Simple Example.

2007-08-02 Thread James Holmes
Nope, I just saw it working on a newly installed CF8 developer via the
inbuilt server, hence my thought that it's a /CFIDE/scripts-like thing
(as for cfforms and all the other bits that rely on the /CFIDE folder)
since you're using an IIS vhost.

On 8/2/07, Dale Fraser [EMAIL PROTECTED] wrote:
 I don't understand why or why the debug window won't show. I'm starting to
 think this might be broken in the CF8 final.

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
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:285147
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax Simple Example.

2007-08-02 Thread James Holmes
Do you have a /CFIDE virtual mapping for your IIS site?

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

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


RE: Ajax Simple Example.

2007-08-02 Thread Dale Fraser
I tried placing both these files in the www root and have the exact same
problem.

I'm about to try on a Windows Server rather than on Vista.

Regards
Dale Fraser

http://dalefraser.blogspot.com


-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 2 August 2007 5:16 PM
To: CF-Talk
Subject: Re: Ajax Simple Example.

Nope, I just saw it working on a newly installed CF8 developer via the
inbuilt server, hence my thought that it's a /CFIDE/scripts-like thing
(as for cfforms and all the other bits that rely on the /CFIDE folder)
since you're using an IIS vhost.

On 8/2/07, Dale Fraser [EMAIL PROTECTED] wrote:
 I don't understand why or why the debug window won't show. I'm starting to
 think this might be broken in the CF8 final.

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


RE: Ajax Simple Example.

2007-08-02 Thread Dale Fraser
Something is Wrong.

On a new server, Windows 2003. With the same code, it works and I can get
the debug window, exact same code on Vista with same virtual directory
doesn't find the cfc.

If anyone has tried this in CF8 final under Vista and an IIS virtual
directory or would like to, can you let me know.

But I'm 99% sure this is a bug or incompatibility with Vista or the new IIS.

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:285150
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Ajax Simple Example.

2007-08-02 Thread AJ Mercer
did you have CF bugging enabled on the vista machine.

I think the debugging stuffs up the web service xml

On 8/2/07, Dale Fraser [EMAIL PROTECTED] wrote:

 Something is Wrong.

 On a new server, Windows 2003. With the same code, it works and I can get
 the debug window, exact same code on Vista with same virtual directory
 doesn't find the cfc.

 If anyone has tried this in CF8 final under Vista and an IIS virtual
 directory or would like to, can you let me know.

 But I'm 99% sure this is a bug or incompatibility with Vista or the new
 IIS.

 Regards
 Dale Fraser

 http://dalefraser.blogspot.com



 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


RE: Ajax Simple Example.

2007-08-02 Thread Eric Roberts
I think something is still awry with the mail...  I got your response to Ben
and Sean in another thread about 4 hours before I got their original
messages hehehe

Eric

-Original Message-
From: Dale Fraser [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 02, 2007 1:14 AM
To: CF-Talk
Subject: RE: Ajax Simple Example.

I tried that also, get the same message.

I don't understand why or why the debug window won't show. I'm starting to
think this might be broken in the CF8 final.

PS: This list is still funny, got the reply before the question.

Regards
Dale Fraser

http://dalefraser.blogspot.com


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

I think it is looking for test.cfc in the root directory, not the play
directory


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







 





~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


Re: Ajax Simple Example.

2007-08-02 Thread Rey Bango
Dale,

Send me your code and I'll try to dupe it here. Send it to me offlist 
please.

Rey...

Dale Fraser wrote:
 Something is Wrong.
 
 On a new server, Windows 2003. With the same code, it works and I can get
 the debug window, exact same code on Vista with same virtual directory
 doesn't find the cfc.
 
 If anyone has tried this in CF8 final under Vista and an IIS virtual
 directory or would like to, can you let me know.
 
 But I'm 99% sure this is a bug or incompatibility with Vista or the new IIS.
 
 Regards
 Dale Fraser
 
 http://dalefraser.blogspot.com
 
 
 
 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

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


RE: Ajax Simple Example.

2007-08-02 Thread Dale Fraser
The code was in the original post, although I had the return wrong.

But a simple test, just do the .cfm and pass ?cfdebug and see if you can
even get that to work under vista.

Regards
Dale Fraser

http://dalefraser.blogspot.com

-Original Message-
From: Rey Bango [mailto:[EMAIL PROTECTED] 
Sent: Friday, 3 August 2007 1:05 AM
To: CF-Talk
Subject: Re: Ajax Simple Example.

Dale,

Send me your code and I'll try to dupe it here. Send it to me offlist 
please.

Rey...

Dale Fraser wrote:
 Something is Wrong.
 
 On a new server, Windows 2003. With the same code, it works and I can get
 the debug window, exact same code on Vista with same virtual directory
 doesn't find the cfc.
 
 If anyone has tried this in CF8 final under Vista and an IIS virtual
 directory or would like to, can you let me know.
 
 But I'm 99% sure this is a bug or incompatibility with Vista or the new
IIS.
 
 Regards
 Dale Fraser
 
 http://dalefraser.blogspot.com
 
 
 
 



~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

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