On Fri, Nov 14, 2008 at 6:17 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote:
> On Fri, Nov 14, 2008 at 5:38 PM, Robert Hanson <[EMAIL PROTECTED]> wrote:
>> Ondrej
>>
>> It's a LiveConnect problem. You should be seeing something -- a black
>> window, maybe with the Jmol logo in the bottom right corner. The popup menu
>
> I see a gray window.
>
>> might work. You might be able to pull up a console.
>
> Unfortunately, the popup menu doesn't work.
>
>>
>> What won't be working is any JavaScript connectivity. After loading
>> http://www.java.com/en/download/help/testvm.xml, try this on the URL line:
>>
>> javascript:alert(document.applets[0].getAppletInfo())
>>
>>
>> If you get an alert with a copyright notice, then we can talk about why Jmol
>> might not be working; if you don't, it's not a Jmol problem -- complain to
>> openjdk-6 folks!
>
> I got:
>
> TypeError: document.applets[0].getAppletInfo is not a function
>
> however, with this:
>
> alert(document.applets[0])
>
> I got:
>
> [object HTMLAppletElement]
>
> So it seems that javascript/java is not working properly in iceweasel.
>
> Thanks for the tip. For reference, here is a test:
>
> http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html
>
> and neither way (e.g. js->applet, applet->js) works for me. It seems
> like a known problem though:
>
> https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762

Ok, so one needs to install openjdk packages from Debian experimental:

$ wajig install -t experimental openjdk-6-jre
$ wajig install icedtea6-plugin

Then install the plugin to iceweasel by hand:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505726

now the js->applet communication works, e.g. clicking the buttons
change the applet color here:

http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html

unfortunately, the apple->js communication doesn't work (does jmol need it?).
Now jmol applets show the loading page and the number of secons
increases in the lower right corner. But it never loads in full. It
seems like an openjdk problem, which still needs to be fixed.

Ondrej

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to