On 6 December 2014 at 12:26, Angel Herráez <angel.herr...@uah.es> wrote:
> Hi Darren
>
> There are two issues in your question
> 1. where to locate the page that holds Jmol (I have understood you do not
> want to create it)
> 2. where to locate the data file
>
> There is something similar implemented, e.g. in Wikipedia. Many molecules,
> like https://en.wikipedia.org/wiki/Citrate
> have in their ChemBox a "Jmol-3D images" link that takes to Bob Hanson's
> page, http://chemapps.stolaf.edu/jmol/jmol.php
> which delivers the structure loaded into JSmol.
> However, this works using the SMILES string for the molecule introduced in
> the url, and the structure itself is hence fetched from the NCI Cactus
> server
> (a procedure that is implemented inside JSmol)
>
> I am not sure if/how the php page will aceppt a file stored in an arbitrary
> server. J(S)mol itself is indeed able to do such a thing, but that may need
> some tweaking in the receiving (php) page.
>
This certainly could be done if the server hosting the files supports CORS
[1] or JSONP
Best regards,
Nina
[1] http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
>
> Do you have a sample model file and location?
>
> This does not refute the other solutions commented, it's just an
> additional or
> alternative comment.
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users