I 1 drop down from where I would like to populate the data in to the text box. 
So in order to do this I am picked the ajaxcfc. So the code seems to be 
working, it gets all the requireq values but doe not populate into the box . 

Functions that I am usig : 
        function doQuery(id)    {
                // send data to CF
                DWRUtil.useLoadingMessage();
                DWREngine._execute(_cfscriptLocation, null, 'categoryUpdate', 
id, doQueryResults);
        }
        
        // call back function
        function doQueryResults (r) {
        //document.getElementByID("addcategory").style.display='block';
                eval(r);
                
        }
My Server side function 
<cffunction name="categoryUpdate" output="no" access="private">
        <cfargument name="category" required="yes" type="numeric">
    
    

   <cfset var qryCategory=''>
   <cfset var jsReturn =''>
   
   <cfquery name="qryCategory" datasource="XXXXXX">
                                          select category from tablename where 
categoryID=#arguments.category#
                      </cfquery>
                   
      <cfsavecontent variable="jsReturn"><cfoutput>
                        
                        $('categoryname').innerHTML     = 
'#JSStringFormat(qryCategory.category)#';
                        
                </cfoutput></cfsavecontent>
                
                <cfreturn jsReturn />
</cffunction>
Do not know what the problem is 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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

Reply via email to