Since my problem with set partitions was solved so quickly, perhaps this
one will be too. :)
I'd like to save a jmol applet for display on a web page --
specifically, I want to re-do what I did at [1] in Sage instead of
Mathematica and LiveGraphics3D.
There's lots of stuff on the web about using jmol applets on the web,
but I need to get the initial data into the right format. How can I do
this from Sage?
Thanks again,
Dan
1. http://www.math.umn.edu/~drake/tes.html (warning, will take a while
to load)
--
--- Dan Drake <dr...@mathsci.kaist.ac.kr>
----- KAIST Department of Mathematical Sciences
------- http://math.kaist.ac.kr/~drake
> I'd like to save a jmol applet for display on a web page --
> specifically, I want to re-do what I did at [1] in Sage instead of
> Mathematica and LiveGraphics3D.
>
> There's lots of stuff on the web about using jmol applets on the web,
> but I need to get the initial data into the right format. How can I do
> this from Sage?
One option you may be interested in pursuing is to use your applets
inside of a Sage worksheet (instead of using JMOL) and loading them
from an external server.
Here is an example of loading an external applet into a worksheet
(just paste the code into a worksheet and execute it):
#Calculator, 2D graphing, 3D graphing.
html('<applet id="mathrider" \
code="org.mathrider.MathRider.class" width="800" height="650"\
codebase="http://sage.math.washington.edu/home/tkosan/mathrider/"\
archive="mathrider.jar" MAYSCRIPT></applet>')
Loading it is the easy part. In this case, getting data into the
applet is the tough part because this applet was loaded from a
separate server than the Sage server :-)
What I have been working on is a technique for allowing applets to
communicate with the Sage server through JavaScript that is running in
the browser. This involves having the applet inject some JavaScript
functions into the browser part of the worksheet, injecting some Sage
code into the server, and then using JSON to send data from the server
to the applet.
If you are interested in pursuing this option, let me know and I will
provide more details on how it works :-)
Ted