Re: [Jmol-users] JS code snippet to display PDB "TITLE" information in Jmol Applet

2008-09-22 Thread Robert Hanson
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

Re: [Jmol-users] final testing appreciated

2008-09-22 Thread Robert Hanson
(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 > > > -

[Jmol-users] final testing appreciated

2008-09-22 Thread Robert Hanson
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

Re: [Jmol-users] JS code snippet to display PDB "TITLE" information in Jmol Applet

2008-09-22 Thread Thomas Stout
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

Re: [Jmol-users] JS code snippet to display PDB "TITLE" information in Jmol Applet

2008-09-22 Thread Angel Herráez
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

[Jmol-users] JS code snippet to display PDB "TITLE" information in Jmol Applet

2008-09-22 Thread Thomas Stout
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");

Re: [Jmol-users] how to echo a javascript variable?

2008-09-22 Thread Thomas Stout
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

Re: [Jmol-users] how to echo a javascript variable?

2008-09-22 Thread Angel Herráez
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

Re: [Jmol-users] how to echo a javascript variable?

2008-09-22 Thread Thomas Stout
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]>