Thank you for replying.
Maybe the term "bug" is not "correct" but In some case I've found problems in IE8 with document.getElementById and I solved them using jquery. In particular it was in case of assign a particular value to a <a href> tag inside a jdialog open on clicking rows of DataTable.
Using document.getElementById IE8 :
document.getElementById('linkCat').href = value;
it did not apply this special value, instead using this:
$("#linkCat").attr("href", value);
it works.
I saw that other people had found similar problem (so I write my solution in case can help someone).
However my priority is solve the visualization of charts. I use this code:
function getCombo(flag, sel) {
var value;
if (flag==0){
value = sel.options[sel.selectedIndex].value;
}else{
value = flag;
}
if (value == 1) {
chart_options = {//'title': jsonData.chart.title + " " +
jsonData.chart.info,
'is3D': true,
'fontSize': 12,
'legend': {position: 'left', alignment: 'center'},
'pieResidueSliceLabel': 'Altre',
'chartArea':{height:'100%'}
};
} else if (value == 2) {
chart = new google.visualization.BarChart(document.getElementById('chart_div'));
chart_options = {//'title': jsonData.chart.title + " " +
jsonData.chart.info,
'fontSize': 12,
'height': Math.max(chart_height, (chart_data.getNumberOfRows() * 20))
};
} else if (value == 3) {
chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
chart_options = {//'title': jsonData.chart.title + " " +
jsonData.chart.info,
'fontSize': 12
};
} else if (value == 4) {
chart = new google.visualization.LineChart(document.getElementById('chart_div'));
chart_options = {
'fontSize': 12
};
} else if (value == 5) {
chart = new google.visualization.AreaChart(document.getElementById('chart_div'));
chart_options = {
'fontSize': 12
};
}
function selectHandler() {
var selectedItem = chart.getSelection()[0];
if (selectedItem) {
var topping = chart_data.getFormattedValue(selectedItem.row, 0);
$("#linkCat").text(topping + " : Visualizza");
var pv = $("input#pvslice").val();
var data1 = $("input#data1slice").val();
var data2 = $("input#data2slice").val();
$("#linkCat").attr("href", jsonData.chart.link + topping + "&PV=" + pv + "&data1=" + data1 + "&data2=" + data2);
$("#dialogSlice").dialog("open");
}
}
google.visualization.events.addListener(chart, 'select', selectHandler);
chart.draw(chart_data, chart_options);
};
Rita