To solve the problem, I modified fusioncharts.js by revising the the render and getSWFHTML functions:
render: function(elementId){
else {
//Normal case. Instantly load the chart
if (navigator.appName.indexOf("Microsoft Internet") != -1) {
n.innerHTML = this.getSWFHTML();
}else {
var embed = document.createElement('embed');
this.getSWFHTML(embed);
n.appendChild(embed);
}
}
}
getSWFHTML: function(node) {
var swfNode = "";
if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) {
// netscape plugin architecture
node.setAttribute('type', 'application/x-shockwave-flash');
node.setAttribute('src', this.getAttribute('swf'));
node.setAttribute('width', this.getAttribute('width'));
node.setAttribute('height', this.getAttribute('height'));
node.setAttribute('id', this.getAttribute('id'));
node.setAttribute('name', this.getAttribute('id'));
var pairs = this.getVariablePairs().join("&");
var params = this.getParams();
for(var key in params) {
params[key].replace(/&/g, "&").replace(//g, ">");
node.setAttribute([key], params[key]);
}
if (pairs.length > 0){
pairs.replace(/&/g, "&").replace(//g, ">");
node.setAttribute('flashvars', pairs);
}
}else
Vance

Back to top
MultiQuote