Using the Query object in the Google Visualization API, I need to find a way to abort a request. I set up the query normally:
var qMyQuery=new google.visualization.Query('http://myurl');
qMyQuery.send(queryDoneCallbackFunctionName);
I have tried the .abort
method, but that only applies to regularly refreshing data. I have also tried setting qMyQuery=null
, but that didn't do anything.
I cannot simply discard the data when it is returned to the callback... the point of this is to stop a very lengthy query on the server, if requested by the user.
Any suggestions? Thanks.