Sign in to follow this  
Vijaya_FC

Swf Url

Recommended Posts

Hi Vijaya,

 

Please note that the SWF Url is the relative path of the respective SWF file. This path is relative to the HTML file where you are mentioning the path.

 

The Url "FusionCharts/Line.swf" means that the Line.swf file is present in the "FusionCharts" folder outside the HTML file.

 

Hope this helps. :D

Share this post


Link to post
Share on other sites

Hi,

 

Lets say you are having separate links for each chart type,

Pie | Line | Column 2D - On clicking these links the chart will be updated with respective chart types

and also you will have another link saying 'Open in new window" for this,

In parent window,

 

<script type="text/javascripts">

function popUp(URL,chart_id) {

chrt = FusionCharts(chart_id);

window.open(URL,"Chart",'toolbar=0,scrollbars=1,width=1400,height=1100,location=0,statusbar=0,menubar=0,resizable=0,left = 248,top = 209')

}

</script>

 

And in child window

<script type="text/javascript">

var chrt = window.opener.chrt;

document.getElementById("chart1").innerHTML = chrt.getSWFHTML();

</script>

 

 

It displaying the chart in new window(with default one), But its not displaying the updated chart (on changing the chart type)

 

 

Thanks,

Vijaya

Share this post


Link to post
Share on other sites

Hi Vijaya,

Thank you for your post.

you may use .src property of the chart object to get the URL.

Example:

chrtURL = FusionCharts(chart_id).src;

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