Fork me on GitHub

v2.2.0 is out

April 21st, 2010 by oyvind.kinsey 
Recently I have dived back in to the RPC feature and I have managed to improve this quite a lot. No more isVoid/isAsync These are no longer needed as all of this is automatically handled by the RpcBehavior. Optional callbacks when calling methods, success, success+error, or none if the remote method does not return data or you just don’t care about it A shorthand notation for defining local...

easyXDM and prototype.js, how to make it work

April 2nd, 2010 by oyvind.kinsey 
This is no longer needed from v2.1.0 as easyXDM now feature tests for a valid JSON implementation. Cross-domain RPC was made easy by the introduction of easyXDM, but there are still obstacles to be found, especially when using libraries like PrototypeJs due to it extending the browser in unsound ways. Specifically, when it comes to PrototypeJs,  it augments the Array objects prototype with an .toJSON...

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...

Supported browsers

March 23rd, 2010 by oyvind.kinsey 
One of the goals of easyXDM is to support all browsers that are in common use, and to provide the same features for all. One of the strategies for reaching this is to follow defined standards, plus using feature detection to assure the use of the most efficient one. Non-standard methods may also be used where appropriate. The two primary techniques used are window.postMessage window.postMessage is...

Adding easyXDM to your project, including debugging tools

March 17th, 2010 by admin 
To be able to use easyXDM in you project, either as a provider, consumer or both, there are a few things that you need to do. (more…)

Setting up your first Socket

March 17th, 2010 by oyvind.kinsey 
The first thing you should do to familiarize yourself with the library is to set up a simple easyXDM.Socket class, which will allow cross domain communication with messages going both from the consumer to the provider, and the other way around. (more…)

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…)