On Mon, Aug 31, 2015 at 9:50 AM, Otis Rothenberger <osrot...@chemagic.com>
wrote:

> Bob,
>
> Since the direct load of a model from PubChem works, PubChem must be
> allowing this with a proper Access-Control-Allow-Origin setting. I
> understand that.
>
> On the JSmol client side, you still have to deal with the cross-origin
> AJAX problem to complete the load. Am I correct on this point?
>
>


>
> If so, how are you dealing with this AJAX problem?
>
>
nothing to do, since they use Access-Control-Allow-Origin  *




> My problem is that I need the 2d sdf for the appended data, not the
> coordinates. I was getting this with regular AJAX via direct access, but
> this has changed in browsers recently because of tightening of the cross
> origin policy. Currently, I'm using my server as a proxy, but PubChem help
> techs say they really do not like the proxy approach.
>
>
I don't know what the  problem should be. Pretty sure if you use


data = Jmol.evaluateVar(jmolApplet0, "load(':caffeine')")


you get it. Right?




> Otis
>
> --
> Otis Rothenberger
> o...@chemagic.com
> http://chemagic.com
>
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


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
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to