Sign in to follow this  
bgvk81

Javascript Function Call Not working !!!!!! URGENT

Recommended Posts

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

>
</pre>
<table cellspacing="0" cellpadding="3" width="98%" align="center" border="0"><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></table>
<p

Share this post


Link to post
Share on other sites

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 :crying: ....Is there any other way by which i can check the same?

Share this post


Link to post
Share on other sites

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.

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