maximuschartdev Report post Posted August 12, 2009 (edited) Hello Team! I implement fusioncharts to our website and would like help with something. I get javascript errors in IE but not in FF when I try to export the charts. The error I am getting is "Object doesn Edited August 13, 2009 by Guest Share this post Link to post Share on other sites
Guest Rajroop Report post Posted August 13, 2009 Hello, Could you please make sure that the ChartID is unique and that there are no identically named HTML element Ids on the same page? Looking forward to your feedback on this! Share this post Link to post Share on other sites
maximuschartdev Report post Posted August 13, 2009 Hello again! I have no duplicate IDs but in my search for the error I have made a new discovery. to get my chart to render at my site I use: <%= Chartfunction(550 , 300 , "ChartId") %> and this is placed inside several asp:Panel tags to get the right design on the page. If I put the <%= Chartfunction(550 , 300 , "ChartId") %> outside these Panels I can do an export. Otherwise I get an javascript error. Still only in IE, not FF?? What could be the problem? Sorry for my terrible english. Regards! /Mats Share this post Link to post Share on other sites
maximuschartdev Report post Posted August 13, 2009 Okey! Now I have located the error.. In my asp.net code im using the rounded corners extension like this ajaxToolkit:RoundedCornersExtender ID="rce" runat="server" TargetControlID="StandardBox" BorderColor="#A7A6A6" Radius="10" Color="White" Corners="All" /> If I remove this from the Panels, then the export works. How come? Im clueless Regards! /Mats Share this post Link to post Share on other sites
Guest Rajroop Report post Posted August 14, 2009 Hello, Just as a clarification: Are you using Flash Player 10? Share this post Link to post Share on other sites
maximuschartdev Report post Posted August 14, 2009 Yes! Flash 10 and IE8 Share this post Link to post Share on other sites
Guest Rajroop Report post Posted August 14, 2009 Hello, Could you please format your code as follows: function ExportMyChart(typeOfExport) { var type; if(typeOfExport == 0) type = 'PDF'; if (typeOfExport == 1) type = 'PNG'; if (typeOfExport == 2) type = 'JPG'; chartObject = document.getElementById('ChartID'); if (chartObject.hasRendered()) chartObject.exportChart({ exportFormat: type }); } I hope this helps. Share this post Link to post Share on other sites
maximuschartdev Report post Posted August 14, 2009 Sorry, but that didnt solve my problem Still same error. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted August 17, 2009 Hi, Could you please send us a scaled down version of the project that you are using to help us debug faster? Share this post Link to post Share on other sites