• Content count

  • Joined

  • Last visited

Everything posted by ooper

  1. I have done plenty of searching/reading and cannot find the answer to this. I want to create an image of a fusion chart on my server in my java code. I don't have any javascript code that I am working with. It is just java code. I want to generate a fusion chart and save it as an image file (jpg, gif, whatever) on my hard drive. That's it. I don't want to send it back to a client browser or anything like that, just create an image chart and save it to my hard drive all in java code on the server. I have the fusion data xml file all ready to go and access to the fusion chart swf files. All I need is the java code to do it. Can someone show me some sample java code that will do this? Also, please include any jar files that I will need and where I can get them. I downloaded the fusion eval (although I have a paid copy in which I couldn't find any jar files), and I found the following jars: fcexporter.jar fcexporthandler.jar fchelper.jar fctl.jar I didn't see a FusionCharts class anywhere. I looked for one because of some reading I did that showed a FusionCharts.render() function, but I could not find that class in any jar file. Thanks, Brian
  2. First of all, I am assuming that I can follow the same steps with FusionWidget server-side export as described for FusionChart server-side export. Is this correct? I am trying to get a FusionWidget (LinearGauge) exported server-side. Here is what I have setup so far: Copied fcexporter.jar to WEB-INF\lib Copied fusioncharts_export.properties to WEB-INF\classes and configured with these settings: SAVEPATH=/charts/ HTTP_URI=http://localhost/mysite/charts/ OVERWRITEFILE=false INTELLIGENTFILENAMING=true FILESUFFIXFORMAT=TIMESTAMP Added additional attributes to my chart xml like this: <chart bgColor="FFFFFF" bgAlpha="0" showBorder="1" upperLimit="100" lowerLimit="0" gaugeRoundRadius="5" chartBottomMargin="10" ticksBelowGauge="0" showGaugeLabels="0" valueAbovePointer="0" pointerOnTop="1" pointerRadius="9" exportEnabled="1" exportAtClient="0" exportAction="save" exportHandler="http://localhost/mysite/FlashCharts/v31/ExportHandlers/FCExporter.jsp"> Created ExportHandlers folder as shown in exportHandler attribute above and put FCExporter.jsp and FCExporterError.jsp there. Also created Resources folder under ExportHandlers folder and put FCExporter_IMG.jsp and FCExporter_PDF.jsp in there. When I click Submit button on my page the results come back, and the chart is generated in the browser, but an image version of it is not showing up in my "charts" folder. What else do I need to do? I have the latest version of FusionWidgets. The chart is rendered in the browser with an <object> tag like this: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="80" id="Column3D" ><param name="movie" value="http://localhost/mysite/FlashCharts/v31/HLinearGauge.swf" /><param name="FlashVars" value="&dataURL=http://localhost/mysite/temp/F8FDA2CC-E90E-7688-7E58-BFBFDA1398D5.xml" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><embed src="http://localhost/mysite/FlashCharts/v31/HLinearGauge.swf" flashVars="&dataURL=http://localhost/mysite/temp/F8FDA2CC-E90E-7688-7E58-BFBFDA1398D5.xml" wmode="opaque" quality="high" width="500" height="80" name="Column3D" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
  3. The documentation warns of possible problems with dataXML when using larger chunks of data. What is the dataXML string length limitation exactly?
  4. Go to this link and click the submit button: http://www.calcxml.com/do/ins02?skn=50 Hover over the one dot on the line graph. It says, "Male, 39.5". I want it to say, "Male, 39.5 Years Left". If this is possible, what would the xml look like? Thanks.
  5. I get sporadic crunched charts on Firefox 3.0 on a Mac. Here is a sample of the crunched chart: Here is what is expected: I have tested on other browsers and also on Windows and I don't get this problem so I am assuming it is specific to Firefox 3.0. Can anyone confirm this? Does FF 3.0 have issues with FusionCharts? It doesn't happen every time -- maybe only 30% of the time. Not sure what to do. Is there a fix or workaround we can apply from our side? Thanks.
  6. Smashed charts in Firefox 3.0 on Mac

    You can get the html code here by running this calculator: http://www.calcxml.com/do/bud02 Just leave all the input fields as they are and click the Submit button. The chart data is available for 24 hours after running the calculator then it is cleaned off of our servers. And remember that our testing showed crunched charts about 20%-30% of the time. In other words, on a Mac using Firefox 3.0, we clicked the Submit button at the above URL 30 times and saw crunched charts around 7 times. On other browsers we never saw crunched charts.
  7. Smashed charts in Firefox 3.0 on Mac

    Here is the object tag being used: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="300" id="Column3D" > <param name="movie" value="http://host4.mysite.com/FlashCharts/v31/Column3D.swf" /> <param name="FlashVars" value="&dataURL=http://host4.mysite.com/temp/944171A0-EFA3-675A-6C58-5967136154ED.xml" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <embed src="http://host4.mysite.com/FlashCharts/v31/Column3D.swf" flashVars="&dataURL=http://host4.mysite.com/temp/944171A0-EFA3-675A-6C58-5967136154ED.xml" wmode="opaque" quality="high" width="500" height="300" name="Column3D" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>
  8. With version 3.0.5 came additional security features that disallow the use of absolute URLs. Needless to say, this breaks the ability to use FusionCharts as part of a web service. Here is the error in the debug window: dataURL reset: A colon character was found in dataURL, which can be potentially dangerous as it allows XSS attacks. Re-setting dataURL to Data.xml. If you're using absolute URLs (like http://domain.com/...) to provide dataURL, please convert it to relative path for increased security. Our web services create xml data files for FusionCharts and store them on our servers. We also have the swf files on our servers. The web service sends back to the client completed <object> tags, with absolute URLs that reference our servers. The web service client then embeds the <object> tags in his html and gets FusionCharts displayed to his users... well, at least prior to v 3.0.5. (We have no upgrade path. We are stuck on v 3.0.4) Do you have any suggestions on how we can resolve this? One thing that comes to mind is to have each of our hundreds of clients store the swf files on their local servers (is there a licensing problem with this??) and rather than send back a completed <object> tag, send back the URL where they can download the xml data file. Then they would have to create the <object> tag themselves and reference everything locally. Wow, this would be VERY user-UNfriendly. I am aware of the dataXML option, but as your docs indicate, it is limited by the string length supported by the browser. This will not work for us since we have large data sets. Is there some other way that you can provide the security measures added in v305 and still allow absolute URLs? If not, why not leave it up to the users of FusionCharts whether we want to take advantage of the extra security measures provided in v305 rather than force it upon us?
  9. Using FusionCharts with web services

    THANK YOU! Version 3.1 has fixed our problem. We can now use absolute URLs as we need to.
  10. Using FusionCharts with web services

    Will someone please answer my post from 2/11/2009? Thanks.
  11. Using FusionCharts with web services

    Hello, Still hoping you can answer my previous post from 2/11/2009. Thanks.
  12. Using FusionCharts with web services

    Hello, Still hoping you can answer my previous post from 2/11/2009. Thanks.
  13. Using FusionCharts with web services

    I don't think you are understanding our situation here. Go to this URL: http://www.washingtonpost.com/real-estate/tools-calculators/mortgage-calculator.html Enter some numbers and click submit. You'll see a nice FusionChart along with some other calculations. The Washington Post is a client of ours. We provide financial calculators via web services. We license FusionCharts, have the swf files on our servers and generate the xml data files for the FusionCharts. Our clients, like Washington Post, call our web services. We don't call web services, we provide them. If you view source on the page with the FusionChart on it from the above link, you can search and find the <object> tag. Notice there are absolute URLs pointing to our servers for the pre-version 3.0.5 swf file and the data file. If we wanted to upgrade to latest version of swf files, how could our clients, like Washington Post, continue to use the FusionCharts?
  14. Using FusionCharts with web services

    Let me see if I understand how the "relayer" suggestion works: 1. One of our clients calls a web service on our servers. 2. We generate the data.xml file and store it on our servers. 3. We return to our client a response to his web service call and include the URL where they can download the data.xml file. 4. Our client uses "relayer" code to fetch the data.xml file and they store it on their server. (Not sure why this is called a "relayer". All they are doing is simply downloading an xml file.) 5. Our client creates an <object> tag similar to this: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="700" height="400" id="Column3D" > <param name="movie" value="/chartswf/MSColumn3D.swf" /> <param name="FlashVars" value="&dataURL=/chartdata/mydata.xml" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <embed src="/chartswf/MSColumn3D.swf" flashVars="&dataURL=/chartdata/mydata.xml" wmode="opaque" quality="high" width="700" height="400" name="Column3D" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> 6. Our client embeds the <object> tag in their web page and displays the chart to the end-user. Question 1: Is the above correct? Question 2: The above requires that we distribute the FusionChart swf files to each of our clients, since they will have to host both the swf and the data files in order for the relayer suggestion to work. Is this okay? I am not familiar with the licensing requirements, but if our clients have to purchase a license to FusionCharts in order for this relayer suggestion to work, then it is not a viable solution for us. Please advise. Thanks.
  15. Hey, I need to use absolute URLs for the dataURL parameter. Here is my situation: I have multiple web server machines that service XML requests. A client does not know which server he is talking to when he makes a web service call. He just sends the request to http://www.mycompany.com/webService and our load balancer sends the request to one of the servers. The XML responses is then sent back to the client. Part of the XML response has the object tag for the flash chart with the dataURL parameter in it. This has to be an absolute URL, since the xml data file is only sitting on one of the multiple servers we have. A subsequent call to a relative URL to get the data file may not get routed to the same server through the load balancer. If you can think of a way to resolve this, please advise, otherwise I am forced to remain on the older version until there is an option to use absolute URLs. I don't want to use the dataXML option because of the limitations described in the documentation. Requiring sessions with our clients is not a solution. The web services must remain stateless. Please add an option to allow for absolute URLs. By the way, what is the security risk? Thanks, Brian Barnett
  16. V 3.0.5 Problem

    So each of our web servers would have a Relayer.aspx, or Relayer.jsp in our case. Can you provide some pseudo code for what this file would do? Also, what would the dataURL look like in the object tag? It would point to Relayer.jsp?? Like this? ... value="&dataURL=/Relayer.jsp"