I ran into an error with firefox and searched everything and did not find the answer to the question that I had.
My program works fine in Chrome and IE, but iframe diagrams don't work in firefox.
I use a handler and then jquery.ajax to grab the data and run the script.
jQuery.ajax({
url: jQuery(this).attr("href"),
data: data,
dataType: 'script'
});
data = all information for piechart and all information for the table. The table is perfect, but the iframe pie chart is empty. If I press the backspace button, a picast will appear. This is almost the same as piechart - overshoot in firefox.
the data looks like except for my own data. This is passed from the handler to the ajax call
var data = new google.visualization.DataTable();
data.addColumn('string', 'Task');
data.addColumn('number', 'Hours per Day');
data.addRows(5);
data.setValue(0, 0, 'Work');
data.setValue(0, 1, 11);
data.setValue(1, 0, 'Eat');
data.setValue(1, 1, 2);
data.setValue(2, 0, 'Commute');
data.setValue(2, 1, 2);
data.setValue(3, 0, 'Watch TV');
data.setValue(3, 1, 2);
data.setValue(4, 0, 'Sleep');
data.setValue(4, 1, 7);
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, {width: 450, height: 300, title: 'My Daily Activities'});
- ? , , , , Firefox iframes.
- ,