Issue 580: Java Applet to JavaScript communication is not working.
http://code.google.com/p/chromium/issues/detail?id=580

Comment #50 by [EMAIL PROTECTED]:
Thanks for the test case. It can be further reduced to:

<html><head><script language="javascript">
function runTest() {
   var g = document.scripter.getGraphics();
   g.setColor(new java.awt.Color(200, 200, 200));
}
</script>
</head>
<body onload="runTest()">
<applet id="app" code="java.applet.Applet" name="scripter"
         width="100" height="100">
</applet>
</body>
</html>

This fails because Chrome doesn't support global Java packages. So it is  
not possible
to call 'new java.awt.Color(...)' in Chrome.

However, I am looking into the newer way to support this using the  
following syntax:
'new document.scripter.Packages.java.awt.Color(...)'

New Java plugin enables this syntax and more information about it can be  
found here:  
https://jdk6.dev.java.net/plugin2/liveconnect/#PER_APPLET_PACKAGES

Will revisit this later once we have 'Packages' keyword working.





-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to