New Cross-domain Ajax Implementation

Way back last April of 2005, I wrote a post on how to get data from other domains in your ajax web applications, by sending a remote url to a page on your domain, and then having that page get the remote data server-side and simply write that data back to your web app.

In one of the comments recently ‘chopper’ mentioned a cross-domain ajax implementation that he uses which works by having a cross-domain javascript file.

We had some emails back and forth talking about his implementation and I mentioned that his approach woulnd’t work for rss feeds from any random place on the web, because you would need to place a file on that rss feed’s domain in order to get their content.  He had the idea to make a sort of proxy that would be able to get the content from another domain, while still not having to write your own page for it.  A few days later Xajrate was launched :)  I was amazed.  This took him about 4 days to put together, and its awesome! Theres a small page where you can fill out details of the rss feed you want to consume, and the page will generate the necessary javascript to drop on your page in order to get the content you want, you can even specify refresh times, so you can pull in a news feed every 5 minutes if you want to.

If you’re looking to get dynamic content using ajax, and you want to pull that data from external sources, definitely check this site out.

http://www.xajrate.com/

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Enter my name (ben) in this box, so I know you're a human.

Comment: