mictracy Report post Posted January 7, 2010 hi, First Chart Container why function FC_NoDataToDisplay can't be invoked?function FC_Loaded() work well ,but getXML() can't work? thanks for your answer!!! Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted January 7, 2010 Hi, Welcome to FusionCharts Forum. Could you please refer to the link below for further details on this:- Ref.- http://www.fusioncharts.com/docs?/JS_Events.html Hope this helps. Wish you a very Happy New Year. Share this post Link to post Share on other sites
mictracy Report post Posted January 8, 2010 thanks, but i have do this: set registerWithJS flag of the chart to 1 var myChart1 = new FusionCharts("swf/Column2D.swf", "myChartId", "600", "350","0","1"); FC_NoDataToDisplay is still not invoked getXML() show error:object can not support this attribute or method thank! Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted January 8, 2010 Hi, Could you please send us the code that you are using for firing the events? Awaiting your reply. :hehe: Share this post Link to post Share on other sites
mictracy Report post Posted January 8, 2010 (edited) as Attachment, 1?FC_NoDataToDisplay isn fusionCharts_.txt Edited January 8, 2010 by Guest Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted January 8, 2010 Hi, Could you please send us the screen-shot and the sample of the code that you are using as an attachment? Also, could you please let us know, which programming language you are using for the same? Awaiting your reply. :hehe: Share this post Link to post Share on other sites
mictracy Report post Posted January 8, 2010 please unzip, then run testData.html, you shoul see the result. i should want it invoke FC_NoDataToDisplay(), but it doesn't. i should get chart's xml, but when i push the button, 1) my ie browser show a dialog(as errorImg.jpg in attachment), it tell me :alert(chartObj.getXML()); this line is error, chartObj does not support the attribute or method. 2)firefox is Unresponsive and not show error info yet i just use code is chinese, now i change it into english,but problem is still exsit. fusion.zip Share this post Link to post Share on other sites
mictracy Report post Posted January 8, 2010 my ie browser version is v8 fireforx browser version is v3.5.7 thanks! Yearn Reply!!! Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted January 8, 2010 Hi, Could you please re-check the root paths for the SWF that you are using in your HTML page? Also, please take a look into the codes below:- Ref.- <SCRIPT LANGUAGE="Javascript" SRC="../../FusionCharts/FusionCharts.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript"> function getChartXML(){ //Get chart from its ID var chartToPrint = getChartFromId("chart1Id"); alert(chartToPrint.getXML()); } </SCRIPT> For further details on the same, please refer to the link below :- Ref.- http://www.fusioncharts.com/docs?/JS_getXML.html In case you wish to display the chineese charecters , please save your XML file in UTF-8 encode format. Ref.- http://www.fusioncharts.com/docs?/SpChar.html Hope this helps. Share this post Link to post Share on other sites
mictracy Report post Posted January 8, 2010 Thanks again! FusionCharts.js 's path and swf 's path are correct. I found that the file in demo can't see effect, can't get xml content yet. FusionCharts_EvaluationCodeJavaScriptBasicsGetXML.html I do not know where the problem lies in... oh, could you send me a full example? can invoke function FC_NoDataToDisplay() and can get xml content? I know that my request was too much, but Please look at the surface of my desperate, please help me ,Most grateful!!! Share this post Link to post Share on other sites
Guest Madhumita Report post Posted January 8, 2010 Hello, You are using FusionCharts v 3.0.3 . Please upgrade your version of FusionCharts from the link below: http://www.fusioncharts.com/puc/ After upgrading your codes will work. The FC_DataLoad event was not present before 3.0.7. Hence, the getXML and NoDataToDisplay functions were not working. Share this post Link to post Share on other sites
mictracy Report post Posted January 8, 2010 Thank you for your patience and answers, this problem has been resolved!! Thank you so much1 Share this post Link to post Share on other sites
Guest Madhumita Report post Posted January 8, 2010 Hello, Could you please share how you resolved the problem? Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted January 8, 2010 Hi, Thank you for your appreciation. Glad that your issue is resolved. Happy FusionCharting. Share this post Link to post Share on other sites