Javascript error for 'save as image'
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


12»»

Javascript error for 'save as image' Expand / Collapse
Author
Message
Posted 3/6/2008 7:13:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/18/2008 2:50:56 AM
Posts: 9, Visits: 24
I am tring to to save the chart as an image .I also included the FusionCharts.js properly. even though it is throwing javascript error like chartToPrint.saveAsImage() function is not defined. I am using fusion chart 2.0.5 version.I searched saveAsImage() function in FusionCharts.js .It was not present there. Anyone can provide me the FusionCharts.js which includes saveAsImage () function Or any other solution .

Thanks in advance



Dharmendra
Post #4958
Posted 3/6/2008 12:41:45 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 2 days ago @ 7:57:52 PM
Posts: 1,956, Visits: 468
You need to use v3.0.6

Thanks,
Pallav Nadhani
FusionCharts Team
Post #4979
Posted 3/7/2008 12:54:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/18/2008 2:50:56 AM
Posts: 9, Visits: 24
Hi,

Can you please provide the me the code of saveAsImage() function of FusionCharts.js which is updated in v3.0.6?
I will be very thankful to you.

Thanks


Dharmendra
Post #4990
Posted 3/7/2008 7:50:13 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 1:21:47 AM
Posts: 675, Visits: 1,079
hi,

You would need the swf of v3.0.6. The javascript file remains the same. Please read this page in our documentaion for more info:

http://www.fusioncharts.com/docs/Contents/JS_saveAsImage.html

Regards,

Sudipto Choudhury
FusionCharts Team

Post #4994
Posted 3/10/2008 8:08:17 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/18/2008 2:50:56 AM
Posts: 9, Visits: 24
Hi ,

Actually, i am using the evaluation version of v3 which is presently available at your site . And I also used the same information as you provided the link for saveAsImage function . I copy the whole example as it is mentioned in the link. It fails at the line chartToPrint.saveAsImage();and gives the error 'chartToPrint.saveAsImage() is not a function' in error console.So, I just want to confirm that this facility (save as image ) is available in evaluation version or not. If not ,then how can i achieve this facility.Please provide me exact solution.

Thanks


Dharmendra
Post #5007
Posted 3/11/2008 6:53:43 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 1:21:47 AM
Posts: 675, Visits: 1,079
Hi,

No single feature is disabled in eval version. There might be som other issues. Also please check if you are running the application from a server. Or you might need to set up Flash Player security options online from Adobe's website.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #5013
Posted 3/11/2008 9:42:58 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/18/2008 2:50:56 AM
Posts: 9, Visits: 24
Hi Sudipto,
I have Adobe flash version 9.I am running the same on server. Even though it is not working . Can you please tell me saveAsImage function should be present in FusionCharts.js or not. If yes ,then it is not available in evaluation version.
I am also attached the code.Please look into this .


function saveChart(){
//Get chart from its ID
var chartToPrint = getChartFromId("chart1Id");
chartToPrint.saveAsImage();
}

and

var chart1 = new FusionCharts("../FusionCharts/Column3D.swf", "chart1Id", "400", "300", "0", "1");
chart1.setDataXML("");
chart1.render("chart1div");

and the data.xml is
chart imageSave='1' imageSaveURL='http://localhost:8080/jsp-examples/FusionCharts/MyFirstChart/ImageSaving/FusionChartsSave.jsp'>



Everything is in the path.Please look into this.

Thanks




Dharmendra
Post #5021
Posted 3/12/2008 12:20:06 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 1:21:47 AM
Posts: 675, Visits: 1,079
Hi,

There are some functions in FusionCharts which are exposed and can be accessed from the chart itself. Flash techies call this externalInterface functions. We can use JavaScript to call these functions directly. saveAsImage() is one of these functions. Hence, you would not get this entry in FusionCharts.js. But, if you use FusionCharts SWFs whose version is v3.0.6 you would definitely get this featute. Could you please check whether you have the specified version of chart SWF files. To know your version to this precision 3.x.x, please render a chart with debug mode on. In the debug window you would get the version info.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #5028