Activate your free membership today | Log-in

Monday, December 10th, 2007

Ajax Cross Domain Script

Category: Ajax, JavaScript, Library

Bart Van der Donck has released his script to do Ajax Cross Domain scripting. You download the ACD.js script and then you can do things like this hello world:

HTML:
  1.  
  2. <script type="text/javascript" src="http://www.ajax-cross-domain.com/cgi-bin/ACD/ACD.js?uri=(http://216.92.176.52/?name=john)"></script>
  3. <script type="text/javascript">alert(ACD.responseText);</script>
  4.  

Here is how it works:

I love how the learning curve has been defined for you to Bart :)

Posted by Dion Almaer at 6:16 am

+++--
3 rating from 87 votes

6 Comments »

Comments feed TrackBack URI

Commercial Solution second on the learning curve… that is precious!

Comment by Joe Larson — December 10, 2007

Here’s a list of 418,000 other “ajax cross domain” scripts in perl.

Comment by unfletch — December 10, 2007

It’s just a proxy… not really cross domain

Comment by Tyson — December 10, 2007

I must disagree with Tyson: and as Machiavelli says, it’s not the way that counts but the result! So with a proxy you do get cross-domain - just, it’s not entirely client side ;-)

At Mixendo.com we have a similar approach, with a few improvements over ACD solution. Include our cross-domain xhr javascript and:

1) you keep using the XMLHttpRequest object as usual - just, it’s cross-domain enabled

2) we have an improved cross-domain security model, the developer has to declare which sources his application is going to connect to so that the user know what’s going on

3) you can make both GET and POST request… which is vital considering that GET is limited in lenght!

4) our proxy can take care of cookies, mandatory for some websites

Please have a tour on our Mixendo Developers Website to learn more about our MiXHR Service and other upcoming cross-domain/mash-up solutions.

Comment by stefanoc — February 25, 2009

I must disagree with Tyson: and as Machiavelli says, it’s not the way that counts but the result! So with a proxy you do get cross-domain - just, it’s not entirely client side ;-)

At Mixendo.com we have a similar approach, with a few improvements over ACD solution. Include our cross-domain xhr javascript and:

1) you keep using the XMLHttpRequest object as usual - just, it’s cross-domain enabled!

2) we have an improved cross-domain security model, the developer has to declare which sources his application is going to connect to so that the user know what’s going on

3) you can make both GET and POST requests which is vital considering that GET is limited in length!

4) our proxy can take care of cookies, mandatory for some websites

Please have a tour on our Mixendo Developers Website to learn more about our MiXHR Service and other upcoming cross-domain/mash-up solutions.

Comment by stefanoc — February 25, 2009

Try flXHR if you want true cross-domain client-only proxy. http://flxhr.flensed.com Identical API to native XHR, so no code changes. Magical, fun, easy cross-domain Ajax.

Comment by shadedecho — May 21, 2009

Leave a comment

You must be logged in to post a comment.