if your CFCs are outside the web root, you would not be able to access them via AJAX
On Friday, May 1, 2009, Rick Faircloth <[email protected]> wrote: > > Perhaps Lance's suggestion assumes my CFC's are outside the webroot? > They're all under the same application.cfc in this app. > > On Fri, May 1, 2009 at 5:46 PM, Scott Stroz <[email protected]> wrote: > >> >> As long as the AJAX requests are being made to a file under the web >> root - and how could they not? - then there is no need to duplicate >> the <cfapplication> tag in your 'remote' CFC >> >> On Friday, May 1, 2009, Lance S <[email protected]> wrote: >> > >> > I think you mentioned you are using ajax, correct. Ajax is processing >> with out knowledge of the application space. To get around this I created a >> cfc that all my cfc calls go through and the top of the cfc looks like >> > >> > <cfcomponent extends="mxAjax.core.cf.mxAjax" output="false"> >> > <CFAPPLICATION NAME="NewHeaders" >> > SESSIONMANAGEMENT="true" >> > CLIENTMANAGEMENT="true" >> > SETCLIENTCOOKIES="false" >> > SESSIONTIMEOUT="#CreateTimeSpan(0,0,20,0)#" >> > APPLICATIONTIMEOUT="#CreateTimeSpan(0,2,0,0)#"> >> > <cffunction access="remote" name="............ >> > >> > The key is the the cfapplication name has to match the application name >> that you have set you your application.cfm file. As long as the names match >> you should be able to access and manipulate your session variables. Hope >> this helps >> > >> > >> > >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322123 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

