I'm approaching this from the perspective of making the adjustment purely on the user machine. The idea is that the live graphic is only useful with someone interacting with them and we cannot predict what size screen people will be working with. The approach I'm playing with now is to default to a small (250px) square display and give the user javascript controls that resize the applet. Do people see problems with this approach? It does completely remove the ability to control the applet size from the server. At present, I'm ignoring the size parameter that was used previously. I could re-introduce it when I also work on captioning.
Jonathan I'm also cc'ing sage-notebook On Nov 15, 11:11 am, William Stein <wst...@gmail.com> wrote: > On Sun, Nov 15, 2009 at 7:22 AM, mhampton <hampto...@gmail.com> wrote: > > > I'm not sure its what you mean, but Sage can already change the size > > of Jmol applets if the graphics object (call it G) is wrapped with > > show(G, figsize = [3,3]) for example. > > Making the resizing dynamic using a div and jquery control is actually > quite easy. I had done this (I guess in Dec 2007?), but it wasn't > 100% robust so I turned it off for release, thinking somebody would > get back to it. > > > > > > > -Marshall > > > On Nov 13, 8:04 am, Jonathan <gu...@uwosh.edu> wrote: > >> Some things related to this. > > >> 1) The Jmol application already has the ability to make customizable > >> web pages, that would not depend on the SAGE server, but just a plain > >> vanilla web server. To use this facility you would just need to > >> download the file that contains the information for the vector field. > >> There may be some issues with hard coded paths in scripts the way SAGE > >> presently uses Jmol. I'm looking into that (slowly). > > >> 2) This week I finally got a chance to start working through how Jmol > >> is used in the notebook. I am working on adding captioning, limiting > >> the number of Jmols on a page (so as not to run out of memory), and > >> allowing the user to change the size of the Jmol applet. The place > >> I'm having trouble is with the use of the cell_writer to tell Jmol > >> where to act. Can anybody point me to all the places where > >> cell_writer is defined and modified? Normally, when writing Jmol > >> pages I access where I want Jmol to act using div ids. > > >> I'm working very slowly, because I'm doing this in little bits of > >> time. That said, if anybody has other things they want please let me > >> know. > > >> Jonathan > >> part of the Jmol Development Team > > >> On Nov 12, 4:38 pm, Rob Beezer <goo...@beezer.cotse.net> wrote: > > >> > On Nov 12, 8:16 am, mhampton <hampto...@gmail.com> wrote:> It would be > >> > nice if this could be automated in some way, with some > >> > > sort of "export to html page" command, analogous to the "Get Image" > >> > > command currently supported. > > >> > Marshall, > > >> > Very nice! I sent these to a couple of colleagues, and one wrote back > >> > to suggest that it would be nice to have the plots captioned (I > >> > realize that's part of your exercise). But if the automated > >> > production include a "caption" keyword, or a whole pile of explanatory > >> > text, that'd be a nice addition. I'll add this to the ticket as a > >> > suggestion. > > >> > Rob > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://wstein.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-edu@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 -~----------~----~----~----~------~----~------~--~---