I have a secret hook in the JavaScript that sees the "javascript:" in that command box and does an eval() instead of jmolScript(). :)
Nick Greeves wrote: > 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. > fooled you! ------------------------------------------------------------------------- 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

