Hi again, Bob

I think you have a problem related to applet IDs.
Please review
http://jmol.sourceforge.net/jslibrary/index.en.html#jmolApplet

By default, applets receive IDs like 0, 1, etc. That means they get named 
jmolAppplet0 etc.
Since you are giving 'jmolAppplet0' as the ID, your applet will be actually 
named 
jmolApppletjmolAppplet0

When you define IDs explicitly, you must refer to them always, and I think you 
are not doing 
so in some script calls.
Specifically, your code does (in order of action):

jmolInitialize('../nosession/jmol');
jmolApplet(300, 'background white; javascript jmolLoaded0();', 'jmolApplet0');  
// defines applet ID as 'jmolApppletjmolAppplet0'
// and then, called by jmolLoaded0() :
jmolLoadInline(jmolMol0, 'jmolApplet0'); // refers to applet ID
jmolScript(addlScripts); // does not refer to applet ID

so, your jmolScript call is trying to locate the default applet ID, 
jmolApplet0, which does not 
exist.

Think if you really need to define IDs for applets; if not, let Jmol.js do the 
work.
Otherwise, just use '0' for the ID, or add the correct reference:
jmolScript(addlScripts, 'jmolApplet0'); 




------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to