Paul, 1) Removing the flicker idea is good. We'll see about implementing that. 2) Tell me if the following is what your envision. *You want a link you can use to download the file generated for Jmol in SAGE. *You want that file to work in the Jmol application (or is it the applet) no matter where you put it.
The first part is really easy. The second part is a bit harder. Jmol can generate this kind of file from loaded data, but we will have to rewrite the SAGE code that generates the files for Jmol to get those kinds of files on the server. That is why I suggested the signed applet. Since they are allowed to write to the local disc if the user agrees, they can take whatever data is in them and generate a file you can move around. If you are doing this all inside a web application, there are other ways to do this from javascript. You would just have to move data generated in javascript to the server. Jmol can generate a "state" script, which would point to all the necessary data on the server (assuming it is the same one, otherwise you have to use the signed applet). That script is all that would have to be moved into the homework. The other issue is getting Jmol to behave within the WebWork framework. I don't know what those requirements are. I know from discussions with other people that you have to be very careful when embedding Jmol in things like Moodle and Wiki sites. Jonathan On Dec 5, 5:47 pm, Paul Pearson <paultpear...@gmail.com> wrote: > 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 <gu...@uwosh.edu> 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 <paultpear...@gmail.com> 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 sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.