Bugs item #986230, was opened at 2004-07-06 22:58
Message generated for change (Comment added) made by migueljmol
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379133&aid=986230&group_id=23629

Category: Applet
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Miguel (migueljmol)
Summary: How to loadInline Mol files?

Initial Comment:
Hi,

I am hoping to use JMOL in a chemi/bioinformatics
application that I am putting together with HTML DB
(from Oracle) and Oracle 10g database.  With JMOL I can
display chemical structures alongside assay data and
other chemical Data in rows in reports resulting from
sql queries. I also plan to integrate pdb files of
targets and x-ray structures as well as models of
compounds bound into them with the assay data.

In particular I am interested in using 'loadInline' to
automatically load Molfiles. I seem to be having
troubles with this.

In particular, if I have a textarea with
name="form.textarea" and put the molfile in there I am
able to read it into Jmol applet with :

<INPUT TYPE="button" VALUE="Get mol in Jmol"
onClick="document.jmol.loadInline
(document.form.textarea.value)">

However, this doesn't work within the applet tags:

<applet name="jmol" code="JmolApplet"
archive="JmolApplet.jar" width="350" height="350"
align="left">
<param name="progressbar" value="true">
<PARAM NAME="loadInline"
VALUE="document.form.molfile.value">
</applet>

Any suggestions would be greatly appreciated.


Thank you very much!

David Hecht
Idun Pharmaceuticals
[EMAIL PROTECTED]

 

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

>Comment By: Miguel (migueljmol)
Date: 2004-07-19 18:20

Message:
Logged In: YES 
user_id=1050060

I think that we are all set on this issue. 


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

Comment By: Nobody/Anonymous (nobody)
Date: 2004-07-07 16:05

Message:
Logged In: NO 

I apologize for misleading you yesterday, David. I believe the 
only problem with your code is the "VALUE=" line of the 
loadInline parameter, which is causing a load error in the Jmol 
applet. 

Your code works for me when I simply remove the <param 
name="loadInline"> tag.

For more examples (now that I think I have this right!) see

http://www.stolaf.edu/people/hansonr/jmol/inline/simple.htm
(your code)

and

http://www.stolaf.edu/people/hansonr/jmol/inline/index.htm
(with frames, probably works in NN4)

and

http://www.stolaf.edu/people/hansonr/jmol/inline/inline2.htm
(with span and document.getElementById, won't work in NN4)

Bob Hanson




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

Comment By: Nobody/Anonymous (nobody)
Date: 2004-07-07 07:20

Message:
Logged In: NO 

.loadInline() fails to properly load the model.

I have adjusted 

http://www.stolaf.edu/people/hansonr/jmol/inline/

to do a more thorough test. Findings on IE or NN:

1) In all three cases, .mol, .gout, .xyz, document.write()
with the loadInline parameter works. In the .xyz case,
animation succeeds. for .gout, vectors are shown, and
vibration initiates.

2) For .mol and .xyz files, jmol.loadInline() fails to load
the model and reports "file type jme" with no atoms

3) For .gout, jmol.loadInline() loads the model but fails to
show vectors or start vibration.

Bob Hanson


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

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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to