Fork me on GitHub

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