Skip to main content
WolfShade
Legend
October 21, 2014
Question

Accessing CFC in a different folder - no mappings

  • October 21, 2014
  • 1 reply
  • 268 views

Hello, everyone,

I've got a project that I'm working on that has (basically) the following folder structure:

/       (webroot)

-main

----qry

----disp

-org

----qry

----disp

I've got a form in /org/disp that has a CFSELECT that I need to bind to a CFC in /main/qry.  I've tried "cfc:main.qry.cfcName.functionName(param)", and "cfc:/.main.qry.cfcName.functionName(param)", and I keep getting the "component cannot be found" error message.  How can I get this to work?

V/r,

^_^

This topic has been closed for replies.

1 reply

WolfShade
WolfShadeAuthor
Legend
October 21, 2014

Okay.. no one, here, told me that application.cfc is loading a variable for the web root, so using that did find the component.

HOWEVER, I am having another issue, now.

When the page loads, the select (which is supposed to populate based upon the value of another select) isn't populating, and F12 shows that there is an issue with a throw being uncaught.  The throw is NOT part of the try/catch in cfajax.js, apparently.  Is there a fix for this?

V/r,

^_^