I have tried unsuccessfully to remove myself from the forum. Can you
please try to do so manually as I have tried everything I can to do it
From: Robert Hanson <email@example.com>
Date: Thu, 30 Aug 2012 08:16:38 -0500
Subject: Re: [Jmol-users] How to use JmolApplet to display molecules
protected by authenticated session?
You won't be able to load binary data into Jmol using any script
command. Sorry. This won't work with .jmol files.
So basically you have the problem that Java itself can't load the file
as a script, and the file is binary. Right?
I can probably do something about that. As long as the binary data is
mappable to Java byte
I'll get back to you with a test tonight or tomorrow. I think it should
be possible, but it's going to be rather tricky.
On Thu, Aug 30, 2012 at 5:38 AM, Mikko Rantalainen <
2012-08-28 22:04 Europe/Helsinki: Robert Hanson:
> Main problem I see there is that you are not waiting for the applet
OK. I fixed that. I tried both Jmol.js and Jmol-JSO libraries and
> initialize. You need to do that call from within an
pretty sure my current problem is only related to data to be passed to
applet's method loadInlineString().
I've prepared a demo at
What already works:
load SDF file via Jmol applet
load JMZ/JMOL file via Jmol applet
load SDF file via ajax in paraller with Jmol applet loading
What does not work:
load JMZ/JMOL file via ajax in paraller with Jmol applet loading
The files demo-ajax-load-sdf.html and demo-ajax-load-jmol.html are
identical except for the file to load (ioversol.sdf vs ioversol.jmol).
I believe that the problem is around line 96 of file
"demo-ajax-load-jmol.html" where I have the binary data in
variable "data" and I'm trying to call Jmol.js function
"jmolLoadInline(data)". I guess I would need to do some kind
conversion to get the binary data to correctly end up to the applet.
I have understood correctly, Java strings are technically a bit
with the binary contents in variable "data" which contains
among other stuff.)
In short: I have a binary file contents (ZIP-archive / JMZ / .jmol) in
variable called "data". How can I get jmolLoadInline() to work
The example files have been prepared to work in a local filesystem
(tested Firefox 14, Google Chrome 22 denies XHR access to files in
filesystem so that cannot be used).
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond.
will include endpoint security, mobile security and the latest in
Jmol-users mailing list
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900