HTML5 Ajax to a different domain?

ajax, html

Solution

Have a look at http://snook.ca/archives/javascript/cross_domain_aj/

I personnaly was able to do this using the JSON method on a personal project where I had to receive ajax response from a different domain's server.

Problem

I recently came across http://chromeexperiments.com/. I found a couple of projects there that are quite intriguing: 100 Tweets and twitterbrowse (I'd post links to them but I'm not yet allowed). These both work fine for me in Firefox 3.5 under Ubuntu 9.04. The thing that I find particularly peculiar is the fact that these two "experiments" seem to issue Ajax requests to other domains than the ones they are hosted on (to twitter.com, more exactly). I have tried the same thing on an HTML5 page (using `<!DOCTYPE html>`), but I can't get it to work. I'm using MooTools to create the requests, but that shouldn't be a problem, it's still Ajax, right? Any idea how those sites are doing this?

Original source