This has been fixed in 10.x.41.

See 
http://www.stolaf.edu/people/hansonr/jmol/test/proto/jmol-proto-10.x.41_8-13-06.zip

Note that there is no need for using the callback mechanism for this. 
The preferred method is to use

  var info=jmolGetPropertyAsString("fileHeader")

which returns the information as a JavaScript string directly.

If you are not using Jmol-new.js, then what you need to do is use:

  var info=applet.getPropertyAsString("fileHeader")+""

where applet is your applet object. The added +"" ensures that you get a 
JavaScript string and not a Java string.

Bob Hanson

Eric Martz wrote:

>There appears to be a bug in "show pdbheader" (Jmol applet 10.2.0). In my 
>tests, it shows from the start of the PDB file to the last REMARK line. In 
>fact, the header continues beyond what is being shown, ending with the last 
>line preceding a line beginning with any one of three record types:
>
>ATOM
>HETATM
>MODEL
>
>Presently I am using "show pdbheader" via messageCallback to obtain the 
>results of a ConSurf run, which are inserted in the pdb file header in 
>lines beginning "!". Such lines are ignored by other programs that use PDB 
>files, to the best of my knowledge. Since the ConSurf lines are inserted at 
>the beginning of the header, this works OK.
>
>Later, however, I envision using the SEQRES lines to generate an 
>interactive sequence display in FirstGlance in Jmol. Although SEQRES is 
>part of the header, it is not currently being messaged by "show pdbheader" 
>due to the bug. Therefore I would appreciate this bug being fixed.
>
>I have submitted this as a bug at Sourceforge.
>
>Thanks, -Eric
>
>
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to