The way I am doing this right now is that Javascript and Adobe Flash Player interact via ExternalInterface in ActionScript. It easily integrates local Javascript instances with the Flash Player instance, and you can communicate with almost anything in between. You can use the fantastic drawing APIs in ActionScript and really get some power in your own hands to create diagrams or just build some tools from the web.
But then, if the sandbox allows this, generating data using targeting with DLLs will be great! I have nothing functional to test it, so I leave it to the other participants.
source share