Skip to main content
Known Participant
May 28, 2009
Question

still having problem with cfdiv

  • May 28, 2009
  • 1 reply
  • 479 views

Hi,

I pass in my variable with cfajaxproxy to sayHello_serverSide, but i need to return this to the page via cfdiv. My cfdiv tag bound to a cfm page which invokes the returnToDiv method.

The problem is the variable does not seem to pass from the sayHello_serverSide method to the returnToDiv method. How can I make #arguments.name# available to the returnToDiv method.

Thanks.

<cfcomponent output="true">


<cffunction name="sayHello_serverSide" access="remote" returntype="string" output="yes" >
    <cfargument name="name" type="string" required="false" default="Nameless" >
   
  
    <cfreturn #arguments.name# >
   
</cffunction>


<cffunction name="returnToDiv" returntype="string">

    <cfinvoke method="sayHello_serverSide" returnvariable="myname" />
   
    <cfreturn myname />

</cffunction>

</cfcomponent

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    May 30, 2009

    <cffunction name="returnToDiv" access="remote" returntype="string">