DHTMLX Windows not working with Google chart tools: GeoChart

Hello,

I’m trying to attach div object with has GeoChart of Google chart tools in it’s innerHTML to DHTMLX Window object.

For some reason it’s not working for me. Can someone please help. I’ve attached the sample jsp file having the JS code in it.

Kindly help at the earliest.

Thanks,
Chetanmap.zip (842 Bytes)

To be precise I’m getting null pointer error somewhere in dhtmlx windows code.

Is there anything more that I should provide? Please let me know. I’m stuck on this issue.

Here is the information on Google GeoChart.

code.google.com/apis/chart/inter … chart.html

Hello,

try to move window initialization into drawRegionsMap function:

function drawRegionsMap() {

var dhxWins = new dhtmlXWindows();
dhxWins.enableAutoViewport(false);
dhxWins.attachViewportTo("mapDiv");
dhxWins.setImagePath("javascript/dhtmlx/imgs/");
var w1 = dhxWins.createWindow("w1", 20, 30, 320, 240);
w1.setText("dhtmlxWindow");
w1.button("close").disable();
w1.attachObject('chart_div');

var chart = new google.visualization.GeoChart(document.getElementById('chart_div'));
chart.draw(data, options);

};

Thanks Alexandra. It worked.