In a recent project I was developing a java applet that communicates with JavaScript. The applet also loads some dynamic images from a server. Soon I ran into this problem. While running it from the local filesystem it couldn’t load the required images from the server; throws up some security error. Googling a bit, found out that browsers and java-liveconnect does not allow cross domain connectivity. We were not granted access to the server for deployment. So I devised this scheme to fool browser and java runtime.
Read more…
Filed under: Java, javascript, liveconnect |