Hi all, I just encountered a weird problem.I get the following error:
Uncaught Error: Invalid JSON string: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de-de" AND A LOT MORE THEREAFTER when I use this code: <html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script src="varChart.js" type="text/javascript"></script> <script type="text/javascript"> google.load('visualization', '1', {packages: ['corechart', 'bar']}); google.setOnLoadCallback(drawBasic); function drawBasic() { var jsonData = jQuery.ajax({ url: "charting/Country.php?country=2&Type=0", dataType:"json", async: false }).responseText var data = new google.visualization.DataTable(jsonData); var options = { }; var chart = new google.visualization.ColumnChart( document.getElementById('chart_div')); chart.draw(data, options); } </script> </head> <body> <div id="chart_div" style="height: 300px;margin-top:10px"></div> <p style="font-size: x-small;color: grey;text-align: right;">Quelle: eigene Berechnung, OECD Housing Prices database; OECD Economic Outlook database</p> </body> </html> But when I vaildate my JSON everything is just fine! Can anybody help me on this? Do you need mor information? Thank you very much Best Manu -- 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.
