I am working on a code which is a tweak of Flocking sketch by Daniel Shiffman. This code has some PHP SQL added to document the inputs of users.
The code seems to work reasonably fast in PC. But in MAC its drastically slow. I would like to know if the problem is in the code or its the applet and OS's problem.
Here is the link for the processing sketch and source code.
{ i am not sure of the final html link hence for this question I'm using relative path of the link }
My question is How do I call on link(); function without having a popup html or cancelling the current html with applet so that I can send the required info in the background without disturbing the user's interactions with the applet. I just want to send the information to server without disturbing user's session with the applet
Can I use some java code?
I tried using :
URL url = new URL ("./deploytime.php?variableX=10&variableY=20");
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
but it throws me an error saying "malformed URL exception" .
I am another newbie to Processing and I am working on a sketch which is extension of the example Flocking program by Daniel Shiffman.
The way this is setup now is that the user can choose the number of boids to be introduced into the flocking simulation by a GWSlider (Simple default slider) of G4P library. The code is working correctly in Processing in my system. But when I "Export" in processing the html generated in applet folder does not seem to have the slider.
Exported applet folder has the guicomponents.jar file. I would like to know if there are any other files i need to add to the applet folder for this slider to work. Eventually this is supposed to be working in web. So please let me know what changes can make this slider work for me.