﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionCharts Free / General Usage  / saveAsImage - OnComplete Event / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FusionCharts Forum</description><link>http://www.fusioncharts.com/forum/</link><webMaster>support@fusioncharts.com</webMaster><lastBuildDate>Tue, 07 Oct 2008 10:26:46 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: saveAsImage - OnComplete Event</title><link>http://www.fusioncharts.com/forum/Topic5992-40-1.aspx</link><description>I have come up with a possible workaround. Use the iframe onload method to call another javascript function that will call a PDF generation routine. The process is as follows:&lt;br&gt;&lt;br&gt;1. render multiple iframes with charts&lt;br&gt;2. add a button that when clicked calls the saveAsImage function on all iframes&lt;br&gt;3a. the saveAsImage passes the control to a http handler that creates the image and adds it to the cache&lt;br&gt;3b. the last step of the handler writes out a javascript history.go(-1)&lt;br&gt;4. step 3a/3b above is repeated for all iframes on the page&lt;br&gt;5. add an onload method on the last iframe which will react to the onload event when the history.go(-1) is called&lt;br&gt;6. this onload method will pass the control to a render PDF javascript function that will invoke a separate http handler that will read the images from cache and generate a pdf&lt;br&gt;&lt;br&gt;if someone has a better method, please let me know.</description><pubDate>Tue, 29 Apr 2008 22:15:12 GMT</pubDate><dc:creator>exwhyz</dc:creator></item><item><title>saveAsImage - OnComplete Event</title><link>http://www.fusioncharts.com/forum/Topic5992-40-1.aspx</link><description>Is there a way to track the saveAsImage completion? I have several charts on a page, I have embedded these in an iframe and then I want to track when the saveAsImage completes. And when that happens I would like to retrieve the images from the cache and generate a PDF. Currently I am saving the images to Cache successfully, but would like to know when to invoke the PDF generation routine, without waiting for some arbitrary time. I cannot embed this logic inside imageSaveURL target since I am dealing with multiple charts. It would be really nice if in the next version we can have an elegant way of handling multiple charts without resorting to iframes.&lt;br&gt;&lt;br&gt;Thanks!</description><pubDate>Mon, 28 Apr 2008 23:41:34 GMT</pubDate><dc:creator>exwhyz</dc:creator></item></channel></rss>