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.
To make it easier to do this using easyXDM, I have now published an example how how to do this here.
It really is easy, on the page hosting the iframe you use the following to load the iframe
var transport = new easyXDM.transport.BestAvailableTransport({
local: "../hash.html",
remote: "http://provider.easyxdm.net/example/resized_iframe.html",
container: document.getElementById("element_that_should_contain_the_frame"),
onMessage: function(message, origin){
this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
}
});
And then you put the following in the iframes body after the content
var transport = new easyXDM.transport.BestAvailableTransport({}, function(){
transport.postMessage(document.body.scrollHeight);
});
Thats it!
Again, the sample can be viewed here.
My name is Øyvind Sean Kinsey and I am currently a software engineer at