quirkey/sammy — Issue #126: When Sammyjs meets FusionCharts and IE
Author: shinyzhu
Created: 2012-02-07 09:03:41+00:00
State: open

The charts can not show themselves sometimes when navigating from one route to another in IE but Firefox or Chrome is ok.

Well, I know this problem is totally complicated.

I'm building a web application with sammyjs and the application show some charts on some views with FusionCharts, I create those charts with FusionCharts.js. The code:

app js:

var app = Sammy('#content', function () {
this.use('Template', 'htm');
this.get('#/', function (context) {
this.partial('views/home.htm').then(function () {
//FusionCharts.js required
var chart = new FusionCharts({
swfUrl: 'charts/MSCombi2D.swf',
id: 'chart_sales',
width: 400,
height: 300,
debugMode: false,
registerWithJS: true
});

chart.setXMLUrl('chartsources/valid_sales.xml');
chart.render('chart_div');
});
});
});