Here's some more that I found. On both Firefox and IE the following
script (which generates the PNGs) throws the syntax error:
/ntop//ntop/<![CDATA[
function drawchart() {
var hasCanvas = CanvasRenderer.isSupported();
var opts = {
"pieRadius": 0.42,
"colorScheme": PlotKit.Base.palette(PlotKit.Base.baseColors()[0]),
"backgroundColor":
PlotKit.Base.baseColors()[0].lighterColorWithLevel(1),
"xTicks": [
{v:0, label:"Unicast"}]
};
var data1 = [ [0, 100.0], [1, 0.01]];
if (hasCanvas) {
var pie = new EasyPlot("pie", opts, $('canvaspie'), [data1]);
}
}
addLoadEvent(drawchart);
/ntop//ntop/]]>
But, if I drop the first and last lines (/ntop//ntop/<![CDATA[ and
/ntop//ntop/]]>) then the chart renders.
Is anybody other than Gilles and myself running into this problem?
Thanks,
Juan
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop