If I want to distribute a Java game applet and let many sites host the applet, how can I maintain a common high score list?
Created May 4, 2012
John Zukowski As long as the applet is untrusted, the only way you can do this is through sending the new high scores through the Applet context's showDocument():
getAppletContext().showDocument(url, "_blank");You would need to encode the name, highscore, and possibly the host as part of the URL:
http://www.foo.bar/highscore?u=foo&s=5000
In the page that came up, you would then need JavaScript to auto-close the window.
<SCRIPT LANGUAGE="JavaScript"> window.close(); </script>