OK Steve, that's clear now.

Wow! 2007!  Time really flies.

Let's see. Your approach is reasonable, but all comes to what the putJmolDiv() 
function is 
doing. It calls popInJmol(n,molName,fileName) which is designed to use the 
"load" command 
+ the filename. 
I'm not confident what load does with a script file. The safe way is using the 
"script" 
command instead.

So easiest solution is to edit the pop_Jmol.js file and add a new alternative 
function. But then 
you have to cope with calling one or the other depending on if yu want to use a 
model 
filename or a script filename. 
I could put a filter so that the file extension is used to decide, but that's 
not too wise given that 
Jmol doesn't care about extensions, so other people might use any extension.

How about a new version that uses

function putJmolDiv(molNr, molName, molFileName, scripFileName)

?

That would be made backwards compatible, if the last parameter is omiited.
For your case, you would call it omitting the model like in

putJmolDiv(0,'one2one','', '/sites/files/jmolfiles/one2one.spt')

What do you think?




------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to