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
might work. You might be able to pull up a console.
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!
Bob
On Fri, Nov 14, 2008 at 8:01 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have the openjdk-6 which is in Debian main:
>
> http://packages.debian.org/sid/openjdk-6-jre
>
> and most (all) java applets seems to work, including for example this test:
>
> http://www.java.com/en/download/help/testvm.xml
>
> however, jmol doesn't. This page says:
>
> http://jmol.sourceforge.net/browsercheck/
>
> Operating System Linux
> Web browser mozilla
> Browser version 1.9.0.3
> navigator.userAgent Mozilla/5.0 (X11; U; Linux i686; en-US;
> rv:1.9.0.3) Gecko/2008092816 Iceweasel/3.0.3 (Debian-3.0.3-3)
> has getElementById() true
> navigator.javaEnabled() false
>
> So I went into my preferences and I have "Java enabled" checked. So I
> unchecked, restarted iceweasel, checked again, restarted iceweasel and
> now the browser check says:
>
> navigator.javaEnabled() true
>
> however, no jmol applet works (it shows a blank canvas). So I went
> into Tools -> Error Console and there I found:
>
> applet.script is not a founction
> http://jmol.sourceforge.net/jmol/Jmol.js
>
> and when clicking on it, it showed the line 389:
>
> if (applet) applet.script(script);
>
> so it seems like a bug in Jmol.js.
>
>
> I am new to javascript --- how can I debug it? Apparently applet is
> something nonzero, but it doesn't have the ".script()" method. I
> searched the archives of this list and I saw similar problems already,
> but no conclusion.
>
> Thanks for any help,
> 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
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-------------------------------------------------------------------------
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