Hi Ashok,
Just a though here: That readyFunction is great for cleaning up all kinds of
“do it after JSmol loads” operations. You may want to think about creating a
separate ready function and calling your match function from this general ready
function. That way you can put other operations in
Thank you... Works fine.
Info = {
j2sPath: "Jmol/j2s",
disableJ2SLoadMonitor: true,
disableInitialConsole: true,
allowjavascript: true,
readyFunction: Match
}
On Wed, Jan 27, 2016 at 6:58 PM, Angel Herráez wrote:
> Ashok,
> The script is probably running before Jmol has finished loading.
>
> Tr
Ashok,
The script is probably running before Jmol has finished loading.
Try calling the match function from within a Jmol script; this will not run
before Jmol is ready
Alternatively, use Info.readyFunction
http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Info#Startup_period
·
Dr. Angel
Hi Jmol Users,
I tried the following script to compare two SMILES. It works fine.
In the script, the *function Match();* fails to compare. But, by setting 1
second delay of execution it works fine.
*setTimeout(function(){ Match(); }, 1000);*
How to decide the execution time automatically?
$(do
4 matches
Mail list logo