I have a Java Applet inserted on a simple HTML page located at http://localhost:8080/index.html:
IIRC, the JavaScript same-origin policy prevents access to same-host/different-port. The PlugIn's LiveConnect enforces this policy for localhost only.