Sign in to follow this  
IDForums

FusionCharts cannot be resolved to a type

Recommended Posts

I am getting this error "FusionCharts cannot be resolved to a type" when I am using the following code in my JSP.

 

 

 

script language = "Javascript" src = "Files/FusionCharts.js">

 

 

 

div id="TowHourTest">The chart will appear within this DIV. This text will be replaced by the chart.

 

script type="text/javascript">

 

var myChart = new FusionCharts("Charts/FI2_RT_Bulb.swf", "TwoHrTst", "200", "200", "0", "0");

 

myChart.setDataURL("bulb1.xml");

 

myChart.render("TowHourTest");

 

/script>

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

Please make sure you are not using any script tag which is suppsed to run at server side but where you might have put client side code.

Please note that the new FusionCharts(...) would run as client side JavaScript and not server side java.

Share this post


Link to post
Share on other sites

Please check that FusionCharts.js is present in the appropriate directory.

You have included Files/FusionCharts.js - please veriy in this path.

Also, I notice that the swf file has been referred from Charts directory. Please verify both these paths.

Edited by Guest

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