Are you getting any error messages (open the page in Chrome and look at the developer's console [ctrl+shift+j])? What does the table1.php script output when you open it in a browser?
On Wednesday, March 20, 2013 4:08:04 PM UTC-4, [email protected] wrote: > > > This code > I do not know where is the error?? > >> <html> >> <head> >> <script type='text/javascript' src='https://www.google.com/jsapi >> '></script> >> <script type='text/javascript'> >> google.load('visualization', '1', {packages:['table']}); >> google.setOnLoadCallback(drawTable); >> function drawTable() { >> var jsonData = $.ajax({ >> url:'table1.php', >> dataType: 'json', >> async: false >> }).responseText; >> var data = new google.visualization.DataTable(jsonData); >> var table = new >> google.visualization.Table(document.getElementById('table_div')); >> table.draw(data, {showRowNumber: true}); >> } >> </script> >> </head> >> >> <body> >> <div id='table_div'></div> >> </body> >> </html> >> > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
