Sign in to follow this  
Rawayan

How To Update Variable With Javascript

Recommended Posts

Can I update swf url with javascript?

 

var map = new FusionMaps("jakarta.swf", "submapid", "100%", "330", "0", "1");
  		map.setDataURL(""); 		
  		map.render("mapsub");
  		map.setTransparent(true);

 

I try with this code but i know is not function.

 

var changeMap = getMapFromId("mapsubid");
	changeMap.swf('bandung.swf');

 

Need Help. Thanks before...

 

sorry for my bad english :)

Edited by Rawayan

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Welcome to the FusionCharts Forum :)

 

Thank you for the post.

 

I am afraid, you will not be able to update the SWF for an existing chart.

 

You will have to create and re-render the chart again.

 

However, FusionCharts JavaScript classes offer a number of functions for providing data to chart and updating chart data.

 

For more details on 'Providing and updating chart data', please refer to the link below,

http://docs.fusioncharts.com/charts/contents/?JavaScript/JS_ChangeData.html

 

Hope this helps!

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