Marco's answer is correct. I developed a Silverlight web part displaying information retrieved by a HTTP service from other domain. You'd have to deploy either clientaccesspolicy.xml (new from MS, if you use just Silverlight) or crossdomain.xml (originally from Adobe, if you use both Flash and Silverlight) to the root of the web application you access in the other domain.
If you wanted to use the JavaScript OM directly on your page it wouldn't work. The JavaScript OM works only on SharePoint pages and only from within the same site collection. It is meant to help developing sandboxed solutions and not intended for cross-site calls.
Generally for JavaScript you'd have to enable cross-domain JavaScript on the server in the other domain - at least for your pages - to be able to perform the call. I found that in the meanwhile browsers are able to do it when using the usual XMLHttpRequest
; I didn't need XDomainRequest
in IE. To access SharePoint, you could expose the functionality you need as a REST WS (developed and deployed as a SharePoint solution) and use XMLHttpRequest
on your page to call it. Cross-domain access to SharePoint from pure JavaScript YES but pure client solution NO ...
--- Ferda