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?

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>
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact