Is this with sagenb.org? Or with 4.8 on a local machine? What happens
on sagenb.org and test.sagenb.org?
Thanks,
Jason
Do you have the Sun Java installed, or the Iced Tea thing? IIRC, you
need to install the sun jdk; the iced tea version won't work. I know
others have dealt with java issues with jmol on ubuntu before (for
example, Dan Drake, if I recall correctly).
Thanks,
Jason
Hmmm....You said you had an error message. Usually console error
messages include a line number, IIRC, and if you click on the line
number, it brings up the file in question. Do you see a line number for
the error, by chance?
Jason
Hmmm. Double Hmmm...
Here's a possible cause:
http://stackoverflow.com/questions/227552/common-sources-of-unterminated-string-literal
Here's an idea: jmol is launched via javascript that is sent to the
browser. That javascript is eval'd in the browser. Somewhere in that
javascript that is sent to the browser, there is some sort of problem.
Here's one way to diagnose if this is the problem. In
SAGE_ROOT/devel/sagenb/sagenb/data/sage/js/notebook_lib.js, modify the
eval_script_tags function to log the string it eval()'s. (In other
words, put console.log(code) just above eval(code) in that function).
Then we can see exactly what code is being evaluated. There are a few
other places that code is evaled, but my guess is that it is in the
eval_script_tags function.
Do other javascript things work? For example, does shift-enter evaluate
a cell?
Thanks,
Jason
IcedTea would almost/sorta/kinda work for me -- sometimes. I've since
just installed Oracle Java. I almost think we should explicitly not
support the IcedTea plugin, since it doesn't seem to actually work
properly.
Dan
--
--- Dan Drake
----- http://mathsci.kaist.ac.kr/~drake
-------
In trying to diagnose this, I noticed another error. Apparently on
sagenb.org, creating a 3d plot tries to load a file that gives a 404.
I'm CCing Jonathan Gutow, who likely can figure out the problem.
Jonathan: sagenb.org has the new jmol from trac #11503 installed (as
well as the other things from #11080). It should be able to find the
java applet in /java/jmol/JmolApplet0.jar. If you create a new
worksheet and try a 3d plot, though, my browser gives a warning of a 404
when trying to load:
http://sagenb.org/home/jason3/543/JmolApplet
You can see at the top of the worksheet page that jmolInitialize is
called with the /java/jmol path. Why is Sage trying to load the URL above?
Thanks,
Jason
Note that even with the above error, though, the 3d plot is loading
fine. Maybe the JmolApplet.jar is cached for me?
Jason
What if you change jmol_applet so that the jmolApplet line looks like:
jmolApplet(size, "scri"+"pt " + url, jmol_count);
That avoids the text "script" appearing as a single word; maybe that
would help? It's a shot in the dark, but it's one way to solve this
sort of problem if you have "</script>" in your javascript code.
Jason
Okay; thanks for taking the time to try to diagnose the problem. I wish
I could replicate it.
Jason
Thanks for looking at this, when you have time, of course.
Jason
Great! I remember running into a cookie issue that Mike Hansen
essentially solved for us last March. I wonder if it was the same issue.
Jonathan: do you know what this third party cookies issue is about?
Thanks,
Jason