Going back to the original post, I think he was asking how to reference a
row in the returned query using a dynamically passed variable. James H.
mentioned setting a global variable, which should work fine. So:
var glob = MyFirstArg // this is the row number you want to pass to the
returned query
DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'doQuery', id,
MyFirstArg, doQueryResults);
doQueryResults(result) {
theDesiredRow = result[glob];
}
-- Josh
----- Original Message -----
From: "Adkins, Randy" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Friday, June 30, 2006 12:50 PM
Subject: RE: ajaxcfc and Call back
> "R" is the structure of the query that is returned from the CFC.
> For sake of the naming convention, lets say I want to pass the value of
> "PassThisValue"
> To the doQueryResults call. Both of these are different values.
>
> R is a query structure and PassThisValue would be a simple numeric
> variable.
>
>
>
> -----Original Message-----
> From: Andy Matthews [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 30, 2006 3:42 PM
> To: CF-Talk
> Subject: RE: ajaxcfc and Call back
>
> 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){
> ????
> }
>
> -----
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245179
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