Right now my JS looks like this:
$.get("psychic.cfm", {method:idArr[0],key:idArr[1]}, function(data){
//do some stuff
});
psychic.cfm contains the following code:
<cfset VARIABLES.ps = CreateObject("component","includes.salesman")>
<cfparam name="URL.method" default="">
<cfparam name="URL.key" default="">
<cfset func = VARIABLES.ps[URL.method]>
<cfoutput>#func(URL.key)#</cfoutput>
It's the only way that I can think of to call a CFC outside of my webroot. I
don't like having to do this as it requires a middle-man page. The upside is
that it works flawlessly.
I do have a mapping to the CFC directory (not the one above):
apps.cfcs.theCFCinQuestion
Is there any way to call against that CFC directly instead of having to use
a middle page?
____________________________________
Andy Matthews
Senior Coldfusion Developer
Office: 877.707.5467 x747
Direct: 615.627.9747
Fax: 615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com <http://www.dealerskins.com/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 &
Flex 2
Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274637
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4