Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Converting Open Flash Charts to an Image.

by hossman (Prior)
on Apr 05, 2010 at 02:20 UTC ( #832751=note: print w/ replies, xml ) Need Help??


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.
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://832751]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-10-30 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls