Elon Report post Posted January 4, 2009 The following works fine up until the last line. var theHostname = location.host; var chart1 = new FusionCharts("http://" + theHostname + "/FusionCharts/FCF_Line.swf", "fusion_chart_id_1", "600", "300", "0", "1"); chart1.setDataXML(theXML); chart1.render("my_chart"); var chartObj = getChartFromId("fusion_chart_id_1"); chartObj.setDataXML(theXML); The line: chartObj.setDataXML(theXML); ...gives me the error: chartObj.setDataXML is not a function How can I correct this? Thanks in advance to all for any info. Share this post Link to post Share on other sites
Pallav Report post Posted January 5, 2009 This works with FusionCharts v3 - you are using Free version. Share this post Link to post Share on other sites
Elon Report post Posted January 5, 2009 Okay, that makes sense. Thanks for the info. I notice that FusionCharts 3 has several pricing levels... User, Enterprise, Site, etc. Can you provide a link to the page that says what the differences are between each level? Thanks in advance. Share this post Link to post Share on other sites
Elon Report post Posted January 5, 2009 Update: I found a link that appears to have the info: http://www.virtualsoftware.com/ProdPage.cfm?ProdID=3091 Share this post Link to post Share on other sites
Rahul Kumar Report post Posted January 6, 2009 Hi, Could you please see this too http://www.fusioncharts.com/Licensing.asp Share this post Link to post Share on other sites
gvorster Report post Posted January 14, 2009 I too have this message and we have an oem licence. "chart.setDataXML is not a function" Share this post Link to post Share on other sites
Rahul Kumar Report post Posted January 14, 2009 Hi, Could you please tell us the chart's SWF name? [if it starts with FCF_*.swf, then you are using FusionCharts Free, and FusionCharts Free do not support those features.] Share this post Link to post Share on other sites
gvorster Report post Posted January 14, 2009 Hi, It is solved by setting global security settings in flash settings to "allow" Share this post Link to post Share on other sites
Rahul Kumar Report post Posted January 14, 2009 Hi, I am afraid, it won't. Since in V3 setDataXML/setDataURL/etc.. methods are exposed to JavaScript, but not in FusionCharts FREE. Share this post Link to post Share on other sites
ephillipe Report post Posted February 6, 2009 (edited) I have same problem... what is: global security settings in flash Edited February 6, 2009 by Guest Share this post Link to post Share on other sites
Rahul Kumar Report post Posted February 6, 2009 Hi, Please follow this link: http://www.fusioncharts.com/forum/FindPost8077.aspx to know more about Global Security Settings. Share this post Link to post Share on other sites
mrmeyers99 Report post Posted March 3, 2009 I've got this problem too. I'm NOT using FusionCharts Free. The name of the SWF is StackedColumn2D. For me it says Object doesn't support this function or method on the second line of this segment: var chartObj = infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute('id')); chartObj.setDataXML(strDataXML); Note that this code is not from my code, it's from the FusionCharts javascript class. It only happens in IE. Firefox/Chrome work fine. What do I do? Share this post Link to post Share on other sites
mrmeyers99 Report post Posted March 3, 2009 Also in IE a message comes up that says Object doesn't support that property or method, and script debugger shows this code: try { document.getElementById("total_costs_employee").SetReturnValue(__flash__toXML(FC_Rendered("total_costs_employee")) ); } catch (e) { document.getElementById("total_costs_employee").SetReturnValue(""); } I didn't write that code. I don't know where it comes from, except that total_costs_emplyee is the name of the chart I'm trying to render. What would cause that error? Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 4, 2009 Hi, Could you please send us your code to [email protected]? Share this post Link to post Share on other sites
mrmeyers99 Report post Posted March 12, 2009 I sent it in and they found that I was using the same id for the div where I was rendering it and the id for the chart, which was causing that problem. Share this post Link to post Share on other sites
jesse.martinez Report post Posted March 17, 2009 I have the same problem, I'm using oem license. What I have found is that if you put an 'alert()' between the getChartFromId() and the setDataURL() it works fine, but it does not solve my problem since the charts that I'm using are supposed to run without user interaction. Also, it is happening in IE and Firefox as well. Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 17, 2009 Hi, getChartFromId() and setDataURL() works when chart is loaded or rendered completely, also you can track its render event by using FC_Rendered() event, please see the doc http://www.fusioncharts.com/docs/Contents/JS_Events.html for more information. Share this post Link to post Share on other sites
jesse.martinez Report post Posted March 17, 2009 (edited) Problem solved, I wasn't aware of the details about FC_Rendered() event, thanks. Edited March 17, 2009 by Guest Share this post Link to post Share on other sites