Sign in to follow this  
babuu

Setdataxml And Setdataurl And Redirect Prb

Recommended Posts

Hi,

We are used pure javascript fusion charts(without flash).Working fine. we are using latest of fusioncharts.

 

1.we have implemented exporting images in our application by using php(Highcharts).Here one problem facing how to controling php site after saving images in localpath,its going php site how to solve this.

 

 

2.what is diffrent between SetDataXML and setDataURL?

 

 

Problems are below please check it.Please help on these.

 

Here we are observered.

 

 

setDataXML-- one fired DrawComplete while click buuton. See once below code

 

FusionCharts.setCurrentRenderer('JavaScript');

var myChart = new FusionCharts(path, "myChart123", width, height,'0', '1');

myChart.setDataXML(xml.join(""));

myChart.render(divId);

FusionCharts("myChart123").addEventListener ("DrawComplete" , myChartListener );

 

};

 

setDataURL-- everytime fired DrawComplete while click buuton.

 

FusionCharts.setCurrentRenderer('JavaScript');

var myChart = new FusionCharts(path, "myChart123", width, height,'0', '1');

myChart.setDataURL("/app/p4p/sample.xml");

myChart.render(divId);

FusionCharts("myChart123").addEventListener ("DrawComplete" , myChartListener );

 

};

 

 

Please help me.

 

 

Thanks

Babu

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Please find the response to your queries inline, below:

 

1.we have implemented exporting images in our application by using php(Highcharts).Here one problem facing how to controling php site after saving images in localpath,its going php site how to solve this.

>>I am afraid, we are not able to replicate the issue. After downloading the JavaScript Chart image, it redirects to the same page.

 

Please check the sample (below provided URL) and do share the feedback with us.

http://docs.fusioncharts.com/charts/Code/ExportChartSamples/PureJavaScript/PureJavaScriptChart.html

 

2.what is diffrent between SetDataXML and setDataURL?

>>

setDataXML(); // This function provides data to the chart in form of XML String.

 

setDataURL(); // This function specifies the URL of the XML data source.

 

But, we recommend to not to use these functions as these are deprecated functions and due to backward compatibility they still work.

 

So, please use setXMLUrl(url) instead of setDataURL(url) and setXMLData(data) instead of setDataXML(data).

 

Hope this helps!

 

Awaiting your response.

Share this post


Link to post
Share on other sites

Thanks for response.

 

Please give me your mailid, i am sending sample app to ur mail .

 

Thanks

Babu

 

Hi,

 

Please find the response to your queries inline, below:

 

1.we have implemented exporting images in our application by using php(Highcharts).Here one problem facing how to controling php site after saving images in localpath,its going php site how to solve this.

>>I am afraid, we are not able to replicate the issue. After downloading the JavaScript Chart image, it redirects to the same page.

 

Please check the sample (below provided URL) and do share the feedback with us.

http://docs.fusionch...criptChart.html

 

2.what is diffrent between SetDataXML and setDataURL?

>>

setDataXML(); // This function provides data to the chart in form of XML String.

 

setDataURL(); // This function specifies the URL of the XML data source.

 

But, we recommend to not to use these functions as these are deprecated functions and due to backward compatibility they still work.

 

So, please use setXMLUrl(url) instead of setDataURL(url) and setXMLData(data) instead of setDataXML(data).

 

Hope this helps!

 

Awaiting your response.

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