Just wanted to follow-up that I resolved the error on my side - it wasn't a problem in the code above
On Mar 12, 7:57 am, DougACF <[email protected]> wrote: > Here is the code: > > <span id="j_id0:j_id2"> > <span id="j_id0:j_id2:j_id3:chart_div"> > <script src="http://www.google.com/jsapi" type="text/javascript"></ > script> > <script type="text/javascript"> > google.load("visualization", "1", {packages:["orgchart"]}); > > google.setOnLoadCallback(drawChart); > > function drawChart() { > var data = new google.visualization.DataTable(eval('({cols: [{id: > "col1", label: "Name", type: "t"},{id: "col2", label: "Manager", type: > "t"},{id: "col3", label: "ID", type: "t"}], rows: [[{v: "Manager"},{v: > ""},{v: "0038000000Z9EpaAAF"}],[{v: "Staff"},{v: "Manager"},{v: > "0038000000Z9FGkAAN"}]]})')); > > var chart = new google.visualization.OrgChart(document.getElementById > ('j_id0:j_id2:j_id3:chart_div')); > > chart.draw(data, {allowCollapse: 'false', allowHTML: 'true', color: > '#5889D6', selectionColor: '#66895F', size: 'large'}); > > google.visualization.events.addListener(chart, 'select', > handleSelection); > > function handleSelection() { > var selection = chart.getSelection(); > var contactId = data.getValue(selection[0].row,2); > parent.frames.location.replace('/' + contactId);} > } > > </script></span></span> > > On Mar 10, 2:18 pm, VizBoy <[email protected]> wrote: > > > > > Hi, > > > Please provide a link or a code snippet so we can help you debug this. > > > - VizBoy. > > > On Tue, Mar 10, 2009 at 5:32 AM, DougACF <[email protected]>wrote: > > > > I am receiving the following error when using theOrgChart > > > visualization: > > > > J.parentNode is null or not an object > > > > Any idea what might be causing this?- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization 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-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
