As part of our course development, we need a _javascript_ to "reset" a JMol applet. The use case is this

(a) student loads a web page with default rendering of a molecule (eg wireframe)
(b) student makes some changes using applet pop-up menu (eg changes render scheme to ball and stick, does some rotations etc)
(c) student decides he/she is on the wrong track and wants to reset the applet to its initial state, as on page load

So what is the _javascript_ to "reset" to initial state on page load?

I tried document.applets['jmol'].init(), but this threw a security excpetion. I was thinking that calling the applet's init method should re-initialize the applet.

Comments?

Thank you

Warwick R Bailey MRSC CChem
University of Cambridge

CARET
Centre for Applied Research in Educational Technologies
16 Mill Lane
Cambridge CB2 1SB
England

Tel:            ++44 (0) 1223 765361
Fax:            ++44 (0) 1223 765505
eMail:          [EMAIL PROTECTED]
web:            www.caret.cam.ac.uk



Reply via email to