Javascript Function Call Not working !!!!!! URGENT
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Javascript Function Call Not working !!!!!!... Expand / Collapse
Author
Message
Posted 2/20/2007 8:40:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/21/2007 9:08:34 AM
Posts: 3, Visits: 11
Given below is the code from the documentation.

This is not working on IE6. I am not sure whether ther is any configuration gap which needs to be filled. My other JS functions (of a different application) are working fine so javascript is functioning well in my system. Can you please provide a solution cause im in great need of this functionality.

Thanks.

Warm Regards,

Varun

<html>
   <head>
      <title>JavaScript Link Example</title>
      <script language="JavaScript" src="../FusionCharts/FusionCharts.js"></script>
      <SCRIPT LANGUAGE="JavaScript">
      <!--
         function myJS(myVar){
            window.alert(myVar);
         }
      //-->
      </SCRIPT>
   </head>

<body bgcolor="#ffffff">
    <div id="chartdiv" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div>
   <script type="text/javascript">
      var myChart = new FusionCharts("../FusionCharts/Column2D.swf", "myChartId", "500", "300", "0", "0");
      myChart.setDataURL("JSExample.xml");
      myChart.render("chartdiv");
   </script>
</body>
</html>

 

<chart caption='ABC Bank Branches' subCaption='(In Asian Countries)' yaxislabel='Branches' xaxislabel='Country'>
    <set label='Hong Kong' value='235' link="myJS('Hong Kong, 235');"/>
    <set label='Japan' value='123' link="myJS('Japan, 123');"/>
    <set label='Singapore' value='129' link="myJS('Singapore, 129');"/>
    <set label='Malaysia' value='121' link="myJS('Malaysia, 121');"/>
    <set label='Taiwan' value='110' link="myJS('Taiwan, 110');"/>
    <set label='China' value='90' link="myJS('China, 90');"/>
    <set label='S. Korea' value='86' link="myJS('S. Korea, 86');"/>
</chart>

Post #364
Posted 2/20/2007 11:23:20 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 9:07:24 AM
Posts: 2,146, Visits: 501
Can you make sure that you've proper settings in your Flash Player to allow Flash to JavaScript communication?

Thanks,
Pallav Nadhani
FusionCharts Team
Post #370
Posted 2/21/2007 1:26:46 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/21/2007 9:08:34 AM
Posts: 3, Visits: 11
I am not sure as to how to check ...but had given the following line in the HTML file.

<param name="allowScriptAccess" value="always" />

But still not working  ....Is there any other way by which i can check the same?

Post #371
Posted 2/21/2007 11:14:29 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 9:07:24 AM
Posts: 2,146, Visits: 501
There's a Flash Player setting (by going to Adobe website), which allows you to set this. Pls note that this is required only when you're running from local file system.

If you route the example through your local web server or remote web server, these permissions are not required, and the links would work fine.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #381
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 2:45pm


Execution: 0.094.