JSmol has no cross-origin issues with PubChem. You do need to use https. On Mon, Oct 12, 2015 at 10:17 AM, Otis Rothenberger <osrot...@chemagic.com> wrote:
> Bob, > > I was pretty sure that was the case. I’m having an awful time with cross > origin issues with AJAX - particularly PubChem. With PubChem, I had to > resort to something called JSONP, which they support. > > Do you do anything special to deal with cross origin AJAX issues? > > Otis > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > On Oct 12, 2015, at 11:11 AM, Robert Hanson <hans...@stolaf.edu> wrote: > > Yes. JSmol always uses AJAX. > > On Sat, Oct 10, 2015 at 1:24 PM, Otis Rothenberger <osrot...@chemagic.com> > wrote: > >> Bob, >> >> If I do this in Jmol Script: >> >> var x = load("http://cactus.nci.nih.gov/chemical/structure/C/stdinchi >> ");prompt(x) >> >> is Jmol using AJAX? >> >> 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