Sign in to follow this  
maximuschartdev

"Object doesn

Recommended Posts

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 by Guest

Share this post


Link to post
Share on other sites
Guest Rajroop

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! :D

Share this post


Link to post
Share on other sites

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

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

Hello,

 

 

 

Just as a clarification:

 

 

 

Are you using Flash Player 10?

Share this post


Link to post
Share on other sites
Guest Rajroop

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

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
Sign in to follow this