In order to get the 'not_modified' responses you should bypass the Query
mechanism the library provide and have responses from your server call your
own response handler.
To do so add a url parameter to your requests
&tqx=responseHandler:myQueryHandler
and then have code like
function myQueryHandler(response) {
if (response.isError()) {
// handle not modified
// handle other errors
}
// handle valid response
}
Note that you would also have to handle multiple responses in case you are
sending requests to more than one url.
HTH
ChartMan
On Wed, Aug 25, 2010 at 2:18 AM, Joel <[email protected]> wrote:
> How can I work with a 'not_modified' error?
>
> I need the ability to write that to the console log, or show a warning
> icon indicating the widget wasn't updated
> because the data hasn't changed.
>
> this.query.send(this.handleQueryResponse)
>
> the handleQueryResponse method never gets called on a 'not_modified'
> error
> but, is there a public way of accessing the response status message
> before they get passed to handleQueryResponse()
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-visualization-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
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.