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:245166
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54