What does getdata.aspx.cs return (that is, when querying
getdata.aspx/GetLocation, what does msg1 contain in the success handler)?
On Wednesday, May 14, 2014 2:22:08 AM UTC-4, Vikas Sangal wrote:
>
> Hello,
>
> Thanks for your reply, i am stuck in to bind data in to
> google.visualization.datatable. actualy i m retrieving data from data base
> in DataTable of .net and i want to fill data in google datatable.
> i tried to convert into json table and assign to google.datatable.
> i attached 2 files of my project. please suggest your best.
>
> On Tuesday, 13 May 2014 23:24:53 UTC+5:30, Andrew Gallant wrote:
>
> When using AJAX, you should handle all of the chart drawing in the
> "success" callback, as AJAX is asynchronous:
>
> $.ajax({
> type: "POST",
> url: "getdata.aspx/GetLocation",
> contentType: "application/json; charset=utf-8",
> dataType: "json",
> async: true,
> success: function (msg1) {
> alert(msg1.d);
> datat = msg1.d;
> // Create the data table.
> var data = new google.visualization.DataTable(datat);
> // create and draw charts here
> }
> });
>
> On Tuesday, May 13, 2014 9:08:25 AM UTC-4, Vikas Sangal wrote:<blockquote
> class=
>
> ...
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.