Sign in to follow this  
eal

Draw Existing Chart In A New Windows From Javascript In Fusion Chart 3.2

Recommended Posts

Hello,

 

 

I try to draw an already existing chart from a web page to another one open via javascript windows.open

There are no drawing data arrive in the new windows

 

	var cloneChart=chartInCurrentWindows.clone();
	alert(cloneChart.getXMLData());//data from cloned chart are ok
	var width = cloneChart.width;
	var height =cloneChart.height;//with and height are ok
	var w=window.open('','_blank','resizable=0,scrollbars=0,width='+width+',height='+height+',location=0,titlebar=1');
	var doc =  w.document;
	var div = doc.createElement('div');
	div.id = 'divInOtherWindows';
	doc.body.appendChild(div);
	configureChart(cloneChart);
	cloneChart.render(doc.getElementById("divInOtherWindows"));
	   //cloneChart.render("oneExistingIdInCurrentPage"));
	w.focus();		

.

 

Note 1 : if i try to draw the chart in current windows (uncommenting line cloneChart.render("oneExistingIdInCurrentPage") and commenting the previous one) everything is fine for this chart.

Note 2 : if i try to draw in 'divInOtherWindows" something is done by FusionChart in node: the empty chart '<span id="chartobject-1"></span>' is added but no data is send to it in firefox,and error js will be done in ie.

Note 3 : i use FusionChart 3.2

 

Can you tell me what is wrong with my code ?

Regards.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

As of now, we are not able to fix any timeline for the resolution of the cross-frame scripting issue.

 

As a work-around, if you set the second parameter of the clone function to 'true', you can get the set of the parameters, using which if you create a new chart, it would look similar to the parent chart but being a new individual chart.

 

For further details on the same, please refer to the link below :-

 

Ref.- http://www.fusioncharts.com/docs/?JavaScript/API/Methods.html#clone

 

I 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