[jQuery] Accessing REST API via JQUERY?

2010-01-04 Thread Simon
Hi there. I'd like to use jQuery to access a remote website that has a REST API which returns XML data. Should I be able to use the jQuery.getJSON request to do it or is there another command since it's returning XML. Example Request Details (HTTP GET):

Re: [jQuery] Accessing REST API via JQUERY?

2010-01-04 Thread Michael Geary
The remote XML API is not on the same domain as your page, is it? Then you can't do it. Browser cross-domain restrictions will not permit it. The only reason you can use getJSON for cross-domain requests is that it actually downloads executable JavaScript code with a dynamic script element, i.e.