I'm not familiar with jQuery, but I assume its ajax library has ways to
inform the user of error.
Anyway, you can also use the
query<http://code.google.com/apis/visualization/documentation/queries.html>mechanism
that's built into the Google Visualization API, if you know the
server provides the data according to the wire protocol
specification<http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html>
(one
way to achieve that is to use the data source
library<http://code.google.com/apis/visualization/documentation/dev/dsl_about.html>).
I hope this helps in some way. If not, please be more specific in your
question.

On Fri, Mar 18, 2011 at 5:35 AM, r2b2 <[email protected]> wrote:

> Hello,
>
> In the docs in mentions a way to elegantly display an error message
> when something goes wrong. Im using the DataTable to draw the charts.
> The data comes from a json request. My problem is how to display an
> error message , or maybe listen to an error if the json response has
> no data at all? Im using jQuery to send ajax request and then just
> redraw/rebuild my datatable and charts based on this..
>
> Please help. Im quite a bit confused by the docs.
>
> Thanks!
>
> --
> 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.
>
>

-- 
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.

Reply via email to