r myFirstArg is the name of the value passed into doQueryResults. But inside doQueryResults, the value is called r.
So you should be able to use "r". <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Adkins, Randy [mailto:[EMAIL PROTECTED] Sent: Friday, June 30, 2006 2:25 PM To: CF-Talk Subject: RE: ajaxcfc and Call back From what I gather using the following you can pass the variable as an argument. DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'doQuery', id, myfirstArg, doQueryResults); But the question is in the CallBack routine (doQueryResults), how do I reference myfirstArg? R = the query results from the cfc. Is it as simple as (r,firstArg) ? Function doQueryResults(r){ ???? } -----Original Message----- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 9:55 PM To: CF-Talk Subject: Re: ajaxcfc and Call back You can set it as a global JS variable in the function that does the DWR call. Alternatively you can pass it in to the doQuery() call and return it with the other data as part of a struct or an additional column in the query or however you want. On 6/30/06, Coldfusion <[EMAIL PROTECTED]> wrote: > How can I dynamically pass a value from the initial call into the > CallBack function? > > DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'doQuery', id, > doQueryResults); > > Otherwirds, I want to pass an Row number into the doQueryResults call > back action so it can be used dynamically. > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245168 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

