Hi I have tried to fiddle around with the orgchart and add a selection event to it, bacially just copied from the examples. However since yesterday I am getting an error of an undefined function in the external js, when the selection event is fired. Error message:
<https://lh6.googleusercontent.com/-8oXMzK52Y9g/Ul5pGfz22dI/AAAAAAAAAAM/nWiL_qz_iGE/s1600/Error+msg+from+firebug.PNG> Any idea what is causing this error? here is the source code that produces it: <html> <head> <script type='text/javascript' src='https://www.google.com/jsapi'></script> <script type='text/javascript'> google.load('visualization', '1', {packages:['orgchart']}); google.setOnLoadCallback(drawChart); function drawChart() { data = new google.visualization.DataTable(); data.addColumn('string', 'Name'); data.addColumn('string', 'Manager'); data.addColumn('string', 'ToolTip'); data.addRows([ ['Mike', '', 'The President'], ['Jim', 'Mike', ''], ['Alice', 'Mike', ''], ['Bob', 'Jim', 'Bob Sponge'], ['Carol', 'Bob', ''] ]); chart = new google.visualization.OrgChart(document.getElementById('chart_div')); chart.draw(data, {allowHtml:true}); google.visualization.events.addListener(chart, 'select', selectHandler()); } function selectHandler() { alert('test'); } </script> </head> <body> <div id='chart_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. For more options, visit https://groups.google.com/groups/opt_out.
