Yes, but one has always been able to load JavaScript from any server -- the
script tag src attribute has no cross-domain restrictions. This is standard
protocol by even the most advanced JavaScript libraries. Loading Google
hosted libraries, for example (
Just to add some motivation for not using this facility. The reason that
browsers and security add-ons like NoScript make this difficult is
because it is one common symptom of somebody trying to attack you. They
plant a link to their own code somewhere in a perfectly respectable web
page that
Hmm. OK. Thanks for spotting that. I've switched that over. Can't see where
that would be used. But OK.
On Sat, Sep 10, 2016 at 9:29 AM, Otis Rothenberger
wrote:
> Bob,
>
> Maybe your two answer emails reflect this, but did you catch my note about
> the current state of the
Bob,
Maybe your two answer emails reflect this, but did you catch my note about the
current state of the sjmol.php call? This is currently http from Wikipedia. Is
that what you want?
Otis
--
Otis Rothenberger
o...@chemagic.org
http://chemagic.org
> On Sep 10, 2016, at 9:08 AM, Otis
(This has to do with the fact that we cannot do the usual
create-a-script-tag-to-load-JavaScript in this case. These files are being
called by processes ("reflection") that have to wait until the files are
processed and then continue.)
jsmol.php also has to serve .js files if cross-domain, that is when
Info.j2sPath points to a different server.
--
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
A number of years ago, Bob wrote code for an approach to loading Wikipedia
compound article molecules from the SMILES on the Wikipedia page (By the pool
at his hotel at Disney in FL - not kidding). I think the returned page from
ethanol is instructive per this email chain.
NOTE: As this
g.k...@hw.ac.uk>
Subject: Re: [Jmol-users] Load JSmol from external host
I am surprised. As far as I know, the jsmol.php is only used for loading models
in binary format (and only for some browsers), not for used to load the
javascript making the page .
Have you tried loading a plain MO
I am surprised. As far as I know, the jsmol.php is only used for loading
models in binary format (and only for some browsers), not for used to load
the javascript making the page .
Have you tried loading a plain MOL file, for example, or a file from NCI
CACTUS using "load $aspirin" ? That
Thanks Angel,
It turns out you need to make sure you have the serverURL parameter setup with
a working jmol.php file which loads the external JavaScript files via PHP as a
way to get round the security restrictions you mentioned.
Graeme
From: Angel Herráez [mailto:angel.herr...@uah.es]
Sent:
10 matches
Mail list logo