Right, so did I. See http://www.w3.org/TR/cors/

The Access-Control-Allow-Origin header indicates whether a resource can be
shared based by returning the value of the Origin request header in the
response. ABNF:

Access-Control-Allow-Origin = "Access-Control-Allow-Origin" ":"
origin-list-or-null | "*"


This is a header that the server adds on the way back to the page that
says, "ignore cross-domain issues." RCSB, NCI, and NCBI (almost) have it in
place. So now you can do this in a web page:

            jQuery.ajax({
                dataType: "text",
                type: "GET",
                url: fileName,
                success: fSuccess
            })

and your fSuccess function will get the model data as the first parameter.



On Sat, Apr 21, 2012 at 1:39 AM, Paul Pillot <
paul.pil...@ac-orleans-tours.fr> wrote:

> How does this work technically (JSONP ? other ?) ? I thought it was not
> possible to make ajax calls to other domains without triggering a security
> message (to prevent cross site scripting) ?
> It's very exciting to see this working so well without the signed applet !
> Paul
>
> Le 21 avr. 2012 à 01:56, Robert Hanson a écrit :
>
> yes indeedy, both  NCI and PDB allow direct access via AJAX to their
> databases. Thank you, guys!
>
> http://chemapps.stolaf.edu/jmol/chemdoodle/test2.htm
>
> Thus, with Jmol/ChemDoodle there is no need to go to the server except for
> an image.
>
>
> On Thu, Apr 19, 2012 at 9:31 AM, Otis Rothenberger 
> <osrot...@chemagic.com>wrote:
>
>
>
>
> ------------------------------------------------------------
> ------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to