I'm not sure what your purpose here is - why would you need to modify 
anything in the response object?  Or are you asking how to pass a value for 
"myCustomVariable" to the handleResponse function?

If the latter case is what you are after, then you can get around the 
problem by passing the Query#send() method an anonymous function, like this:

var myCustomVariable;
query.send(function (response) {
    // this is the query response handler function
    // use myCustomVariable in here
});

On Tuesday, April 24, 2012 1:24:45 AM UTC-4, Jay wrote:
>
> Does anyone know the easiest way to set additional or custom parameters to 
> the handler function?
>
> var query = new google.visualization.Query(URL);
> var queryString = "Select * limit 20";
> query.setQuery(queryString);
> query.send(handleResponse);
>
> function handleResponse(response){
>   // response[myCustomVariable]  #how to set this variable?
> }
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/RgNoy_m-STAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to