link ( ) without pop up
in
Programming Questions
•
2 years ago
I am working on a processing applet which communicates to server MySQL via PHP. I am sending the required information by calling
link("./deploytime.php?variableX=10&variableY=20") ;
{ 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" .
Any info will be greatly appreciated!
3nadh
1