raviborra

Getchartfromid Doesn't Work In Firefox And Chrome

Recommended Posts

Hi,

 

I am frustrated with one bug, I have function call var chartObj = getChartFromId(id);. below code in FusionCharts.js file perfectly works IE but not in Firefox and Chrome. In case of Chrome and Firefox it returns null(chartObj is null), but in case of IE it is chart object and I can use setDataXML to change chart XML.

window.getChartFromId =

 

function (a) {

 

return f.core.items[a] instanceof f.core ? f.core.items[a].ref : f.swfobject.getObjectById(a)

 

};

 

function getObjectById(a) {

var r = null;

var o = getElementById(a);

if (o && o.nodeName == "OBJECT") {

if (typeof o.SetVariable != w) {

r = o

} else {

var n = o.getElementsByTagName(OBJECT)[0];

if (n) {

r = n

}

}

}

return r

}

 

 

Please help me.

 

 

Thanks & Regards,

 

Ravi.

 

 

Edited by raviborra

Share this post


Link to post
Share on other sites

Hi,

 

 

We are using 3.2.1 release site license, the above code doesn't work. I tried both of them. I am wondering how come it is working seemlessly in IE9 and why not Firefix and Chrome, BTW it is IE 9, chrome 17.0.963.83 m and FireFox 11 version.

 

 

 

Thanks,

 

Ravi.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Can you please paste your HTML code and XML here?

 

It would be helpful for us to look into the issue.

 

Awaiting your response.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now