chart error`
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



chart error` Expand / Collapse
Author
Message
Posted 10/11/2007 7:35:39 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/11/2007 8:31:17 PM
Posts: 4, Visits: 5
Hi, I'm evaluating fusion gadget. I have the following line to create my chart:

var myChart = new FusionCharts("FusionGadgets/AngularGauge.swf", "sph", w, h, "0", "1");

when the line is run - I get a js error: " 'sph' is undefined. When I replace the chartId ("sph") with a reference to the chart div for rendering then it works fine.

Any ideas on why this is happening?

 

regards,

 

Avner

Post #2691
Posted 10/11/2007 8:07:44 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/11/2007 8:31:17 PM
Posts: 4, Visits: 5
Further info:

The specific error is on the following line:

__flash__addCallback(sph, "showAnnotation");

Post #2692
Posted 10/11/2007 8:34:33 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/11/2007 8:31:17 PM
Posts: 4, Visits: 5
I have found the problem - it is related to having a SWF object inside a <form> tag.

I fixed the problem as per the following KB:

http://www.adobe.com/go/kb400730

I added the following line after the render method is called:

window.sph = document.forms[0].sph;

sorted!

Post #2694
Posted 10/12/2007 8:00:38 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 1:21:47 AM
Posts: 675, Visits: 1,079
Hi,

Thanks buddy. Your R&D will be helpful to a immence number of FusionCharts users.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #2702
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 10:23pm


Execution: 0.141.