Dave Watts wrote:
> An AJAX call, like any HTTP request, requires that the target of the request
> be a valid URL. If you want to invoke some file that's not in your web root
> or any subdirectories of your web root, you'll need a virtual directory
> configured in your web server.
That was my first assumption and I put the CFC in my web root right next 
to the cfm file.  But this cfm file calls a custom tag that builds my 
bask HTML page with the usual <html><head></head><body></body</html> and 
associated parameters of a good xHTML compliant web page.  So I put the 
<cfajaxproxy...> tag in this custom tag. 

I was confused by the 'relative' to the calling page this tag was 
expecting.  Just putting the CFC name into the cfc parameter ended up 
with a 'Can not find CFC' error.  Any combination I tried did not work.  
Putting the CFC next to the custom tag template in the 'custom_tags' 
directory worked for the <cfajaxproxy...> tag.  It could find the CFC 
and generate the JavaScript logic, but it assumed this location was the 
web root, which it is not, and made the path accordingly.

I stumbled upon a working combination by creating a 'Services' directory 
under my web root and putting 'Services.purDAO' into the cfc parameter 
of the <cfagaxproxy...> tag.  This is now working properly and I am 
returning data to my user interface. 

I still do not understand the in's and out's of these settings.  I would 
like to know more if anybody has a good under the hood type information 
source.  I suspect that my original location would have worked if I had 
put 'edit/purDAO' into the cfc parameter, but the documentation was 
rather vague on what is a relative and what is a absolute path from what 
starting points.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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

Reply via email to