Ajax:
var postData = [];
postData.push({name: 'key', value: '200'});
$.ajax({
url: "get-data.php",
method: "POST",
data: postData,
dataType: "json",
async: false,
success: function (response) {
data = response;
},
error: function(xhr, status, error){
do something;
}
});
On Monday, 13 April 2020 13:06:12 UTC+10, jeena binex wrote:
>
> Below is a snippet of my Client Side Code in Java script
>
> google.visualization.events.addListener(chart, 'select', selectHandler);
>
> function selectHandler(e) {
> alert('A chart was selected');
>
> // Want to call server side data here , how do I do ?
>
> }
>
>
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/45d99b85-657b-4ad4-925f-4df93e86c5a8%40googlegroups.com.