• Content count

  • Joined

  • Last visited

About InfoStrata

  • Rank
    Forum Newbie
  1. Javascript Mode And Sharepoint 2010

    Yes, I was missing those files in the SiteAssets library. Thank you, it works fine now.
  2. Hi, I am trying to use JavaScript mode for fusion web parts in Content Editor Web Part and Custom Web Part inside SharePoint 2010. I have copied the following files in SiteAssets library: FusionCharts.js Column3D.swf Pie3D.swf I have enabled Web Application permissions to Permissive so that SWF files are opened properly. Inside Content Editor Web Part, I have written the following code: <div id="chartContainer"></div> <script type="text/javascript"> <!-- FusionCharts.setCurrentRenderer('javascript'); var myChart = new FusionCharts( "../SiteAssets/FusionCharts/Column3D.swf", "myChartId", "400", "300", "0", "1" ); myChart.setXMLData("<chart caption='Weekly Sales Summary' xAxisName='Week' " + "yAxisName='Sales' numberPrefix='>" + "<set label='Week 1' value='14400' />" + "<set label='Week 2' value='19600' />" + "<set label='Week 3' value='24000' />" + "<set label='Week 4' value='15700' />" + "</chart>"); myChart.render("chartContainer"); // --> </script> If I comment out the line " FusionCharts.setCurrentRenderer('javascript'); " , the chart renders properly, as it uses the SWF file. Whereas, if I try to use javascript mode, it displays "Loading Chart. Please Wait" continuously, as attached in jpeg file. Please let me know how can I use Java Script enabled fusion charts inside custom web part / Content Query Web Part. Thanks.