Hi everyone,
i'm trying to use Ajax to make a request but i'm having some problems.
I want to use Ajax to prevent reloading the web page, but my charts
exceed the 2048 characters (even with encoding), so i have to make a
"POST".
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
}
else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
document.getElementById("result").innerHTML=xmlhttp.responseText;
}
}
var params = ...
xmlhttp.open("POST","http://chart.apis.google.com/chart",true);
xmlhttp.send(params);
This is the code that i have, but it doesn't work because of the type
of response. I don't know if there is some solution using this
approach. Can anyone help me with this? If an other solution exists
without reloading the web page can you explain me?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Chart 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-chart-api?hl=en.