I have a weird issue.  I just wanted to create a small test and play around
with cfajaxproxy.  When I was first developing this test, I had index.cfmand
test.cfc in a directory without an Application.cfc and everything worked
fine.  As soon as I drop this Application.cfc in the same directory as the 2
files, everything borks and my value is "null."

Can anyone explain why my Application.cfc is causing this code to choke?

Thanks,
~Todd

Code:


Index.cfm contains:
===============
<cfajaxproxy cfc="test">
<script>
var e = new test();
alert(e.foo());
</script>

test.cfc contains:
================
<cfcomponent>
    <cffunction name="foo" access="remote" returntype="string">
        <cfreturn "bar!">
    </cffunction>
</cfcomponent>

Application.cfc contains:
================
<cfcomponent name="Application" output="Yes">
    <cfscript>
       this.name = "theApp";
       this.applicationTimeout = createTimeSpan(0,0,0,1);
       this.clientmanagement= "yes";
       this.loginstorage = "session" ;
       this.sessionmanagement = "yes";
       this.sessiontimeout = createTimeSpan(0,0,0,1);
       this.setClientCookies = "yes";
       this.setDomainCookies = "no";
       this.scriptProtect = "yes";
   </cfscript>
    <cffunction name="onApplicationStart" output="no">
    </cffunction>
    <cffunction name="onSessionStart" output="no">
        <cfset session.user = structNew()>
        <cfreturn true>
    </cffunction>
    <cffunction name="onRequestStart" output="no">
        <cfreturn true>
    </cffunction>
    <cffunction name="onRequest" output="yes" access="public">
        <cfargument name="_targetPage" required="true"/>
        <cfinclude template="#arguments._targetPage#">
    </cffunction>
    <cffunction name="onRequestEnd" output="no">
        <cfreturn true>
    </cffunction>
    <cffunction name="onSessionEnd" output="no">
        <cfreturn true>
    </cffunction>
    <cffunction name="onApplicationEnd" output="no">
        <cfreturn true>
    </cffunction>
</cfcomponent>

-- 
~Todd Rafferty
http://www.web-rat.com/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296264
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to