http://qs321.pair.com?node_id=832751


in reply to Converting Open Flash Charts to an Image.

Spending a lot of time figuring out how to execute javascript on your server isn't really going to help you -- all the javascript does is instruct the Flash object to generate the image, and POST the binary data to the webserver, so executing it on the server doesn't do any good unless you are also executing the flash on your server

Frankly, if you goal is that the user can trigger PDF generation (from the browser), then why don't you just use this same javascript to tell the Flash object to post the raw image back to your server, and then when your server gets the entire image, it can do whatever PDF generation it wants with it.

The Javascript hook provided by the OpenFlashChart API even has a callback mechanism so you can trigger a download (or a redirect to a download) of the generated PDF.

  • Comment on Re: Converting Open Flash Charts to an Image.

Replies are listed 'Best First'.
Re^2: Converting Open Flash Charts to an Image.
by tmharish (Friar) on Apr 07, 2010 at 07:25 UTC
    Hi hossman

    Thanks for the great idea! Managed to implement it and it works perfectly!

      mmmm, sory for my english, but I don't understand what is last solution.???
      hi!! tmharish, i need to do something like this, can you tell me how you solve the problem?, cause i dont know what mean "debug" at the Open Flash Chart API,:S, thaks