Bugs item #1674533, was opened at 2007-03-06 01:38
Message generated for change (Comment added) made by aherraez
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379133&aid=1674533&group_id=23629

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Scripting
Group: v11
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: ceroni (ceroni)
Assigned to: Miguel (migueljmol)
Summary: trouble with ECHO command

Initial Comment:
I'm trying to use the ECHO command to just warn users that the molecule loading 
can take a while. I've figure out that it isn't possible to use ECHO before 
loading any pdb file, so I'm using a dummy file whith just one H atom.

I've tried this without success (the ECHO never appears):

jmolApplet(550, "load dummy.pdb; spacefill off; set echo middle center; echo 
\"Loading molecule|Please wait...||This can take a while\"; load 1JVEmod.pdb; 
spacefill off");


This one works sometimes (the ECHO and the molecule appears, only the ECHO, 
only the molecule):

jmolApplet(550, "load 1atom.pdb; spacefill off; set echo middle center; echo 
\"Loading molecule|Please wait...||This can take a while\"");
jmolScript("load 1JVEmod.pdb; spacefill off");

Am I doing something wrong or is this a bug?


----------------------------------------------------------------------

Comment By: Angel Herraez (aherraez)
Date: 2007-03-06 08:52

Message:
Logged In: YES 
user_id=1065324
Originator: NO

Hello Sérgio

First, recent versions of Jmol allow echo tu be used without any model
loaded.

Second, what takes most time ususally is loading the applet, not loading
the model, so it's probable that you don't see the message because as soon
as the dummy model is loaded, the second one is too.

When you use jmolScript, probably you raise two threads and either one can
go faster and step over the other.

In summary:

1) There is nothing you can do to warn that the initial loading will have
some delay (other than advising it in the web page, not inside Jmol)
2) If the model is large, or it comes from a slower server, you can put a
warning that will disappear when the model arrives (although I think some
times I have seen a black Jmol in between). You may want to take a look at
what eric Martz has done in FirstGlance in Jmol (model files are retrieved
from PDB and there is a previous warning).
3) For the initial message, you don't need a dummy model; you can simply
use

jmolApplet(550, "zap; set echo middle center;
echo \"Loading molecule|Please wait...||This can take a while\"; load
1JVEmod.pdb; spacefill off");


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379133&aid=1674533&group_id=23629

-------------------------------------------------------------------------
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-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to