I was thinking about doing something similar, but from the docs (or atleast the CF8 docs that openBD is modeled after), when there is a call to a component, it looks in three places for the file.

The component folder, the document root and then the folder the call came from.

If that is not how it is working, then it is either something I am messing up or a bug in the code. I remember back a few years ago, they had this issue i remember bringing it up, they released a fix a few days later. Now it is either back again or I messed something up. I do not think I have an issue because if I move my CFC into the folder I am calling from, it works. It also works from the root directory (folder still there).

As for how I am mapping it:

<cfajaxproxy cfc="cfc.user" jsclassname="userCFC" />

I have also tried:

.cfc.user
..cfc.user
/cfc.user - gives a CORS error in the browser
../cfc.user - gives a CORS error in the browser

On 4/14/2015 3:46 PM, Benjamin Davis wrote:
Not sure if this would help, but when I've put CFC's into another folder, I've had to add a mapping in for it. I've added this line to my Application.cfc in the OnApplicationStart function.

<cfset application.mappings["/cfcs"] = getDirectoryFromPath(getCurrentTemplatePath()) & 'cfcs\' />

On Tue, Apr 14, 2015 at 1:37 PM, Ernest McCloskey <[email protected] <mailto:[email protected]>> wrote:

    I did update it after I posted just to see and since there was no
    change I kept quite.  I guess I could have posted an update saying
    the nightly does not work either.

    On 4/14/2015 9:13 AM, Alan Williamson wrote:
    While i can't attest to the location of your marbles, i would ask
    that you try running your code under the nightly build.  You are
    running with a very old engine there and i know somethings were
    updated on the cfajaxproxy front in the last 2 years.



    On 13/04/2015 21:18, Ernest McCloskey wrote:
    So I take it I have lost my marbles?

    On 4/11/2015 7:49 PM, Ernest McCloskey wrote:
    Hello All,

    I am not sure if I am losing my mind or what, but I could have
    sworn that using cfajaxproxy from within a folder in the
    document root that it would start from the document root.  I
    was updating some old code I have removing the old ajaxcfc
    coding I had for the better cfajaxproxy commands, and I started
    getting errors.  Upon closer inspection I noticed that when I
    called cfc.user it would go from the directory it was in, so I
    would get an error: could not find
    website.com/scheduler/cfc/user.cfc
    <http://website.com/scheduler/cfc/user.cfc>. instead of doing
    wesbite.com/cfc/user.cfc <http://wesbite.com/cfc/user.cfc>.

    As for the version of openbd I am on:

    Open BlueDragon Product Version     3,1
    Open BlueDragon Build Date  2013-09-07 04:04:03 GMT



-- -- online documentation: http://openbd.org/manual/
    http://groups.google.com/group/openbd?hl=en

    ---
    You received this message because you are subscribed to the
    Google Groups "Open BlueDragon" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to [email protected]
    <mailto:[email protected]>.
    For more options, visit https://groups.google.com/d/optout.

-- -- online documentation: http://openbd.org/manual/
    http://groups.google.com/group/openbd?hl=en

    ---
    You received this message because you are subscribed to the Google
    Groups "Open BlueDragon" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to [email protected]
    <mailto:[email protected]>.
    For more options, visit https://groups.google.com/d/optout.


--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

--- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to