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.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|