Fork me on GitHub

Uploading files cross-domain, ajax-style

July 22nd, 2010 by oyvind.kinsey 
Uploading files the ‘ajax’-style is something that has been easy to do, as it’s really as easy as targeting a hidden iframe and returning the windows content after load. But when doing these uploads cross-domain, how are you then to get back the response? Well, once again, easyXDM comes to the rescue (more…)

Creating a bookmarklet with easyXDM

March 27th, 2010 by oyvind.kinsey 
Bookmarklets has been common for a long time and are quite easy to make. But one thing that you often see when examining the code behind bookmarklets are that most of the code is  just to facilitate simple cross domain communication back to the whatever service the bookmarklet supports. Following is a sample bookmarklet with support for full RPC and XHR between the page its being applied to and the...

Sending and receiving messages

March 17th, 2010 by admin 
The base functionality delivered by easyXDM is to, without any server-side dependencies,  pass string based messages between two domains in a fast, reliable and secure way. (more…)

Remote Procedure Calls (RPC)

March 17th, 2010 by admin 
As fun as transferring simple strings from one domain to another might sound; is this really what you need? While some applications (like the resize iframe example) might need nothing more, most often what you want is to be able to call methods, with arguments (strings, numbers, JSON objects etc) across the domain boundary like if no boundary existed at all, and guess what, easyXDM offers just that! ...

Cross-domain AJAX

March 17th, 2010 by admin 
As mashups are getting more and more common a problem that keeps arising is how to include data from external domains in a safe way. (more…)

Resize iframe based on content

March 17th, 2010 by admin 
One thing that many are using easyXDM (and other cross-domain hacks) for, is to dynamically change the size of embedded iframes based on the contents size, so as to avoid the scrollbars. With easyXDM this is really easy: (more…)