I know this got changed relatively recently in JSmol due to issues with
HTTPS requests. Since HTTPS pages cannot easily fire AJAX to HTTP pages, in
particular with certain firewall setups like the ones used at my lab, the
jsmol.php file that is used to fetch files from foreign sources must be
provided from your server rather than obtained from Rob's page, which was
the old default setting. I believe this was changed in JSmolCore itself, so
it's a major shift if you were running an old version of JSmol before.

To fix this in JSmol, you would add add the following to your Info variable
where you create your JSmol instance:

serverURL: '/jsmol-scripts/jsmol.php'

Where you would replace "/jsmol-scripts/" with the path, relative or
absolute, to the place on your server where jsmol.php is located. jsmol.php
is included with the JSmol zip file on sourceforge.

However, I don't know how this change affects Jmol itself, and it seems odd
to me that base Jmol would be calling for jsmol.php.

On Wed, Mar 23, 2016 at 11:53 AM, Dave Howorth <dhowo...@mrc-lmb.cam.ac.uk>
wrote:

> I'm probably way behind the times but I only just noticed that the path
> to RCSB files has changed. I loaded an mmCIF file into Jmol and noticed
> in Firebug that the request got redirected. So I went to update my
> jmolscript, which started like this:
>
>    script: 'set loadFormat "http://www.rcsb.org/pdb/files/%FILE.cif";;'
>                  + 'load =' + pdbid + ';',
>
> so it now reads:
>
>    script: 'set loadFormat "http://files.rcsb.org/view/%FILE.cif";;'
>                  + 'load =' + pdbid + ';',
>
> But when I run the script now I get an error box saying:
>
>    Error connecting to server: http://your.server.here
>    /jsmol.php?call=getRawDataFromDatabase&database=_&query=http%3A%2F
>    %2Ffiles.rcsb.org%2Fview%2F3qq5.cif
>
> I can retrieve the file http://files.rcsb.org/view/3qq5.cif with wget,
> so I'm fairly sure I've got the correct URL and the problem is somewhere
> in my usage of Jmol.
>
> Hopefully somebody can advise me. I've copied Andreas just in case this
> is somehow connected with their changes.
>
> Cheers, Dave
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to