Dear Jonathan and Marshall,

Thank you for your help.  My ultimate goal is to be able to include 3d
graphics generated by SAGE and displayed by JmolApplet.jar in the
online homework system WeBWorK.  The main reason I wanted an easier
way to get the 3d plot data file is to make it easy for people (other
than me) to generate interactive graphics in SAGE and use them in
webwork homework questions they write.

Personally, I don't mind signed applets, but signed applets may be
utrusted by other SAGE users.  Can a 3d plot data file generated by
the signed applet be displayed using the unsigned applet (I'm new to
this stuff)?  The signed applet would cause issues for webwork users
and their professors (student's who don't know whether they should
trust a signed applet will probably email their professors and drive
them nuts).    Actually, if a SAGE notebook user has a way to generate
a link to the zip file containing all of the 3d data plot info which
is as simple as the current "Get Image" link, that would probably be
as good as anything (it could even be a plot option, so that it is not
displayed unless the user wants it).

On an old message board, I found a slightly easier way than reading
the html source code to get the 3d plot data file. Here "easier"
doesn't mean easy, but at least this other method has a small number
of steps that can readily be described and followed by others.  Search
for "a.txt" on the page

http://markmail.org/message/vznxl4j34mrwoxv4

I would like to make a suggestion to cut down on the "flicker" of the
screen when scrolling a page with a Jmol applet displaying 3d
graphics: set the applet background color to white (the default is
black).  With a white background as the default state, as the applet
redraws it does not switch the background color from white (drawn
state) to black (default state) to white (drawn state).  See the code
below.

<script type="text/javascript">
jmolSetAppletColor("white");
jmolApplet(["450","450"],"script cylinder-jmol.zip|SCRIPT")
</script>

Best Regards,

Paul



On Dec 2, 7:04 am, Jonathan <[email protected]> wrote:
> Paul,
>
> I'm a Jmol developer who is trying to help with the Jmol interface in
> SAGE.  Would the following server your needs?
>
> Jmol can generate a file that the Jmol application can read to
> regenerate the display on your local machine.  I could add that kind
> of export to the web interface I am working on.  This would be in
> addition to generating an image that can be saved (already in the
> present interface).  This proposed facility will involve changing to
> the signed applet and will require the user to "trust" the applet, so
> that it can write to their disk.
>
> Let me know what you think, so that I can try to incorporate your
> wishes in the new interface.
>
> Jonathan
> On Dec 1, 1:00 pm, Paul Pearson <[email protected]> wrote:
>
> > Hi,
>
> > Is there an easy way to get the plot data file (the file that is
> > displayed by Jmol) from SAGE (preferably from the free online SAGE
> > notebook)?  I have figured out how to do get the plot data file (by
> > looking at the source code to get the appropriate URL for the
> > compressed plot data file), but would like to know if there is an
> > easier way.
>
> > Thanks!
>
> > Paul

--

You received this message because you are subscribed to the Google Groups 
"sage-edu" 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/sage-edu?hl=en.


Reply via email to