Ok, I have the following 2 functions:

<!--- test--->
<cffunction name="test" access="public" output="No" returntype="struct">
 <cfscript>
  var returnData = structNew();
  structAppend(returnData, getTest());//failing here!
  returnData.test2 = "test2";
 </cfscript>
 <cfreturn returnData>
</cffunction>

<!--- test2 --->
<cffunction name="getTest" access="public" output="No" returntype="struct">
 <cfscript>
  var returnData = structNew();
 returnData.testing = "TEST";
</cfscript>
 <cfreturn returnData>
</cffunction>

I am doing an ajax request  on "test", and getting the error "Variable getTest 
is Undefined", failing at the point of calling the getTest function.  

I have tested removing the line of code and successfully completed the ajax 
request, as well as just making the request without ajax involvement and 
calling both functions. I even var scoped the call to the function-- still no 
luck. I think I'm doing something dumb, but it's not jumping out at me... any 
help is greatly appreciated!


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

Reply via email to