Rick,

I don't know if this will help, but I've read about people creating 
"proxy" CFCs in or below the webroot specifically for AJAX requests. 
Those "proxy" CFCs either extend the protected CFCs (the ones outside 
the webroot) or have functions that call the protected CFCs through 
createObject() or other similar means (which breaks encapsulation, but I 
think that doing this was thought of as a justifiable exception to 
encapsulation).  You would still need to create mappings to the CFCs 
that reside outside the webroot, but you likely would have to do that 
anyway if you use the same CFCs elsewhere in your application.

-Carl V.

On 6/25/2013 12:03 PM, Rick Faircloth wrote:
> Well, the good news is that I can include the application variables in the
> AJAX post and pass them into the contact.cfc (which is also out of the
> webroot and in the library) via the AJAX call to contact.cfc.
>
> The bad news is, I have to type all those application variables into every
> AJAX call. But, at least I only have to type them in once for the reusable
> code!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356076
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to