Sure. That would all be in JavaScript. I would just move the canvas's div
to a new location in DOM, create a new canvas in the place it had been, and
do an image transfer in JavaScript from one to another. I think it's about
5 lines of JavaScript to do that.
Bob
On Wed, Mar 6, 2013 at 2:08 PM, Gutow, Jonathan H <[email protected]> wrote:
> Bob,
>
> I'm definitely interested as this is part of what I was working towards
> for the Sagemath stuff. Thanks for this.
>
> The last part I would need is to leave behind an image generated by the
> Jmol applet or JSmol, while relocating the Jmol applet or JSmol to a
> different div and having it load something else.
>
> I may get a little time to look at this tomorrow, but probably not until
> this weekend.
>
> Jonathan
> On Mar 6, 2013, at 1:07 PM, [email protected]:
>
> > Message: 3
> > Date: Wed, 6 Mar 2013 13:06:43 -0600
> > From: Robert Hanson <[email protected]>
> > Subject: Re: [Jmol-users] cover image
> > To: Wayne Decatur <[email protected]>,
> > "[email protected]" <
> [email protected]>
> > Message-ID:
> > <
> caf_yuvuujkxt+ihwqkksxp8rgv3gtaxh1ft9vattb2xf9s2...@mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > OK, let me know of any other strangeness. I'm glad it is working. It was
> > very tricking getting all these options to work:
> >
> > *normal operation
> > *
> > coverImage: ""
> >
> > *image, with behind-the-scenes loading (iPad, perhaps)
> > *
> > coverImage: "xxx.png"
> >
> > *image, with delayed loading (iPhone, perhaps, or maybe just for
> debugging)
> > *
> >
> > coverImage: "xxx.png"
> > deferApplet: true
> >
> > *image, with delayed loading; image remains during that loading (iPhone,
> > perhaps) *
> >
> > coverImage: "xxx.png"
> > deferApplet: true
> > deferUncover: true
> >
> >
> > I can see how we might want two different images, one first and then one
> > during loading. A nice animated GIF would be handy for the loading
> part.
> >
> > We might also tie this in with processes like surface creation. The
> images
> > could be partially translucent. If anyone wants to explore these
> > possibilities, let me know. We have the capability now to interrupt and
> > resume running scripts in order to do this sort of thing. Suggestions
> > welcome.
> >
> > Bob
>
> Dr. Jonathan H. Gutow
> Chemistry Department [email protected]
> UW-Oshkosh Office:920-424-1326
> 800 Algoma Boulevard FAX:920-424-2042
> Oshkosh, WI 54901
> http://www.uwosh.edu/facstaff/gutow/
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users