Thanks Rolf,
That works nicely.
I've noticed something else I don't understand. On Bob's page
http://www.stolaf.edu/academics/chemapps/jmol/docs/examples-11/new0.htm
if I enter javascript:newAppletWindow() into the cmd: window and press return it basically works but I get a Javascript message "undefined" and the new window behind the exisiting window. However if I open Console and type the same command and press execute I get

javascript:newAppletWindow()
pending
script compiler ERROR: command expected
----
         javascript >>>> :newAppletWindow() <<<<

Is this expected behaviour? I had thought Console and the cmd: window gave the same result with other commands.
This happens with Safari and Firefox on Mac OS X.

All the best
Nick
--
WWW Pages:     http://www.liv.ac.uk/Chemistrywww/Staff/greeves.html
Tel:             +44 (0)151-794-3506 (3500 secretary)


On 8 Mar 2007, at 05:05, [EMAIL PROTECTED] wrote:

Date: Wed, 07 Mar 2007 17:54:00 +0100
From: Rolf Huehne <[EMAIL PROTECTED]>
Subject: Re: [Jmol-users] New Window with resizable applet command?
To: [email protected]
Cc: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Greeves, Nick wrote:

Bob now has this working beautifully on many of his pages but I can't
see how to create a "normal" Jmol button or type something into the
cmd: box on Bob's page
http://www.stolaf.edu/academics/chemapps/jmol/docs/examples-11/ new0.htm
that achieves the same result as clicking "new resizable Window".

I'm quite prepared to admit I don't know how to do this but I would
like to!

It clearly relies on Jmol.js and newAppletWindow() but I can't put
them together and the source code for Bob's page reveals nothing about
"new resizable Window".

Can anyone advise what code would produce a Jmol button or the command
required for Console?

I guess it should work if you have the latest Jmol.js (including the
'newAppletWindow' function) and insert the following into your page:

<input type="button" value="new window"
onClick='javascript:newAppletWindow()'>

Regards,
Rolf

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to