Thanks Otis 

it's basically your #2 

I was just playing once again with my old idea od giving the user a hint of 
"please wait" and also "things are progressing". Today I had a file that takes 
time to load so the idea came back.

My current, regular solution is a Jmol echo "loading..." but when things take 
long one does not know if it is stalled. So, I tried a progressive change of 
the 
echo. It works fine using the timeout command, as long as I do not load a 
model.


> I think the only way you´re going to be able to do this is asynchronously, 
but load ASYNC appears to be broken on the version I´m using - 14.2.4 
about a year old.

Mine is 14.3  How do you check if async is working? I had never used it 
before.

Then I went and tried a different thing: overlay JSmol with a "loading notice" 
in a DIV and then close it using loadStructureCallback.  Works nicely but it's 
not pure JmolScript. It lets me put text + animated spinner, though, which I 
like, and also check for success/failure in loading and act accordingly.





------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to