{"action":"created","issue":{"url":"https://api.github.com/repos/orwant/google-visualization-issues/issues/104","labels_url":"https://api.github.com/repos/orwant/google-visualization-issues/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/orwant/google-visualization-issues/issues/104/comments","events_url":"https://api.github.com/repos/orwant/google-visualization-issues/issues/104/events","html_url":"https://github.com/orwant/google-visualization-issues/issues/104","id":74473306,"number":104,"title":"Query.setRefreshInterval(seconds) does not ever call send() again","user":{"login":"orwant","id":9052763,"avatar_url":"https://avatars.githubusercontent.com/u/9052763?v=3","gravatar_id":"","url":"https://api.github.com/users/orwant","html_url":"https://github.com/orwant","followers_url":"https://api.github.com/users/orwant/followers","following_url":"https://api.github.com/users/orwant/following{/other_user}","gists_url":"https://api.github.com/users/orwant/gists{/gist_id}","starred_url":"https://api.github.com/users/orwant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orwant/subscriptions","organizations_url":"https://api.github.com/users/orwant/orgs","repos_url":"https://api.github.com/users/orwant/repos","events_url":"https://api.github.com/users/orwant/events{/privacy}","received_events_url":"https://api.github.com/users/orwant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orwant/google-visualization-issues/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/orwant/google-visualization-issues/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-08T19:47:20Z","updated_at":"2015-05-08T19:47:59Z","closed_at":null,"body":"Original [issue 106](https://code.google.com/p/google-visualization-api-issues/issues/detail?id=106) created by orwant on 2009-10-23T20:26:51.000Z:\n\nSetting up a Query to refresh at a numeric interval before calling send() does not ever call send() \r\nafter the interval.\r\n\r\n<b>What steps will reproduce the problem? Please provide a link to a</b>\n<b>demonstration page if at all possible, or attach code.</b>\n1. Create a simple DataSourceServlet subclass\r\n2. Return a DataTable from the datasource that has a DateTime column and populate the table \r\nwith a new GregorianCalendar(Timezone.getTimezone(&quot;GMT&quot;))\r\n3.Setup a viz table and query to call the datasource\r\n\tgoogle.load('visualization', '1', {'packages' : ['table']});\r\n\tgoogle.setOnLoadCallback(init);\r\n\r\n\tvar dataSourceUrl = 'datasource';\r\n\tvar query, options, container, table;\r\n\r\n\tfunction init() {\r\n\t\tquery = new google.visualization.Query(dataSourceUrl);\r\n\t\t// the refresh interval does not seem to work\r\n\t\tquery.setRefreshInterval(60);\r\n\t\tcontainer = document.getElementById(&quot;table&quot;);\r\n\t\toptions = {'allowHTML': true};\r\n\t\t\r\n\t\ttable = new google.visualization.Table(container);\r\n\r\n\t\tgoogle.visualization.events.addListener(table, 'ready', function() {\r\n\t\t\t// Should not have to do this, but refresh interval is not working\r\n\t\t\tsetTimeout(&quot;sendQuery()&quot;, 60000);\r\n\t\t});\r\n\t\t\r\n\t\tsendQuery();\r\n\t}\r\n\r\n\tfunction sendQuery()\r\n\t{\r\n\t\t// Send the query with a callback function.\r\n\t\tquery.send(handleQueryResponse);\r\n\t}\r\n\r\n\tfunction handleQueryResponse(response) {\r\n\t\tvar data = response.getDataTable();\r\n\t\t\r\n\t\t// Create and draw the visualization\r\n\t\ttable.draw(data, {allowHtml: true, showRowNumber: true});\r\n\r\n\t}\r\n\r\n\r\n<b>What component is this issue related to (PieChart, LineChart, DataTable,</b>\n<b>Query, etc)?</b>\n\r\nQuery\r\n\r\n\r\n<b>Are you using the test environment (version 1.1)?</b>\n<b>(If you are not sure, answer NO)</b>\nNO\r\n\r\n<b>What operating system and browser are you using?</b>\nSafari on OS X\r\n\r\n\r\n<b>*********************************************************</b>\n<b>For developers viewing this issue: please click the 'star' icon to be</b>\n<b>notified of future changes, and to let us know how many of you are</b>\n<b>interested in seeing it resolved.</b>\n<b>*********************************************************</b>\n"},"comment":{"url":"https://api.github.com/repos/orwant/google-visualization-issues/issues/comments/100338650","html_url":"https://github.com/orwant/google-visualization-issues/issues/104#issuecomment-100338650","issue_url":"https://api.github.com/repos/orwant/google-visualization-issues/issues/104","id":100338650,"user":{"login":"orwant","id":9052763,"avatar_url":"https://avatars.githubusercontent.com/u/9052763?v=3","gravatar_id":"","url":"https://api.github.com/users/orwant","html_url":"https://github.com/orwant","followers_url":"https://api.github.com/users/orwant/followers","following_url":"https://api.github.com/users/orwant/following{/other_user}","gists_url":"https://api.github.com/users/orwant/gists{/gist_id}","starred_url":"https://api.github.com/users/orwant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orwant/subscriptions","organizations_url":"https://api.github.com/users/orwant/orgs","repos_url":"https://api.github.com/users/orwant/repos","events_url":"https://api.github.com/users/orwant/events{/privacy}","received_events_url":"https://api.github.com/users/orwant/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T19:47:59Z","updated_at":"2015-05-08T19:47:59Z","body":"Comment [#10](https://code.google.com/p/google-visualization-api-issues/issues/detail?id=106#c10) originally posted by orwant on 2011-01-26T09:58:14.000Z:\n\nThe query #setRefreshInterval(xx) method is working as intended, it sends a query to the data source every xx seconds.\r\nOn the server side a response is returned and I see no issues regarding.\r\nThe only misleading fact here is that once a query is resent and the response doesn't change the client code callback is not called. The library knows that the same response has returned and prevents the chart from being drawn again."}}