quirkey / sammy

Sammy is a tiny javascript framework built on top of jQuery, It's RESTful Evented Javascript.
http://sammyjs.org
MIT License
2.99k stars 384 forks source link

When Sammyjs meets FusionCharts and IE #126

Closed shinyzhu closed 1 month ago

shinyzhu commented 12 years ago

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');
        });
    });
});
jeremyckahn commented 12 years ago

Can you provide a link to a live example of the bug?