Can you send dynamic data to the processing applet?

I have an ajax page that fetches data from a database. I would like to add a processing applet for data visualization, but I cannot figure out how to update the visualization as the data changes. The idea is to be able to insert new data into the visualization.

I'm not tied to processing technology, everything will work. Processing just seems like the easiest way to make it beautiful. Thanks for the advice.

+1


source to share


4 answers


The easiest way is to build your own XML structure (use 64 base code binary data if necessary) and add a timer to the applet to receive updates from the server (via HTTP requests). Preparing and processing XML is up to you.



Applets are a bit heavy to render, so if the same thing can be done in Flash, I would recommend using that instead. Flash got support for HTTP requests as well (or you can let javascript handle it).

+3


source


I'm not sure how you could facilitate communication between the two, but alternatively you can look at processing.js which is rendered in javascript.



+2


source


applets run in their own sandbox. Have a look at the java.net.URL and java.net.HttpURLConnection classes.

+1


source


You can make HTTP requests from java applet. I don't know anything about applet handling.

0


source







All Articles