Thanks for that info, Carl...

I think I read somewhere about that while researching. I'll take another
look and see if I can make that work. It'll beat typing in all the
application variables for every call to the cfc's!

Rick


On Tue, Jun 25, 2013 at 3:39 PM, Carl Von Stetten
<vonner.li...@vonner.net>wrote:

>
> 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:356086
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to