No, you can only call web-accessible templates via the web (whether
they're CFM or CFC). If you have a remote service, why isn't it in
your webroot? If it's not a remote service, then you WANT to have a
middleman (though it's typically a facade CFC, not a CFM). And if
you're using ColdSpring, it'll actually generate those facades for you
automatically, which is nice.
cheers,
barneyb
On 4/5/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
> 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?
>
--
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/
Got Gmail? I have 100 invites.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274638
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4