Nice. You can save yourself a little trouble with:
var title = jmolEvaluate('getProperty("fileHeader").split().find("TITLE")')
Also, realize that this goes back and retrieves the file again from its
source. If you know you want to use the file header this way, it's more
efficient to use
set pdbG
(That's the SIGNED applet...)
On Mon, Sep 22, 2008 at 6:14 PM, Robert Hanson <[EMAIL PROTECTED]> wrote:
>
> One bug I know about seems to be that the applet stalls if a file load
> error occurs. I'm onto that one.
>
> Bob
>
>
>
-
Final testing appreciated for Jmol 11.6. Anything you can do to try to break
it would be great.
One bug I know about seems to be that the applet stalls if a file load error
occurs. I'm onto that one.
Bob
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stol
Good suggestion..done!
http://wiki.jmol.org/index.php/Recycling_Corner#Echoing_PDB_.22Title.22_to_the_Applet_window
On Mon, Sep 22, 2008 at 2:19 PM, Angel Herráez <[EMAIL PROTECTED]> wrote:
> On 22 Sep 2008 at 13:50, Thomas Stout wrote:
> > Here, then -- with my thanks for all the help -- i
On 22 Sep 2008 at 13:50, Thomas Stout wrote:
> Here, then -- with my thanks for all the help -- is a working method to pull
> the "TITLE" lines from
> a PDB file and echo it to the bottom of the Jmol Applet window:
Great, Tom!
May I suggest that you post it in the Wiki -- it's easier to find th
Here, then -- with my thanks for all the help -- is a working method to pull
the "TITLE" lines from a PDB file and echo it to the bottom of the Jmol
Applet window:
var headerInfo = jmolGetPropertyAsString("fileHeader");
var cutUp = headerInfo.split("\n");
Thanks Angel -- I have, but Jmol merely echos "null" or newline or
something to the screen. I know it's echoing *something* because it paints
over text that is there from an earlier echoif I give a javascript level
"alert" then I get the proper text in the pop-up window, but it's not going
to
Tom, have you tried
echo @variable
?
That works for me in a simple test. But I'm not proficient with the use of
braces.
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux
Actually, on re-reading this: I see that I made a typo. What I've been
trying is actually:
jmolScript("echo [EMAIL PROTECTED]");
but Jmol is echoing that literally "@variable" and not the contents of that
variable.
Thanks,
Tom
On Fri, Sep 19, 2008 at 2:50 PM, Thomas Stout <[EMAIL PROTECTED]>
9 matches
Mail list logo