Mash-up and Gadget Frameworks
Other options are to use mash-up and gadget frameworks like Microsoft’s Popfly, Yahoo! Pipes, or Google Gadgets that implement this cross-domain data access for you. Since OpenSocial applications in Orkut are based on Google Gadgets, it is possible for Silverlight OpenSocial applications in Orkut to take advantage of these Google Remote Content APIs to make cross-domain calls. This can be used to call Web 2.0 services or to composite your Silverlight application from XAML residing on various domains. Where you would use Silverlight’s Downloader object for same-domain data and services, you would use the _IG_FetchContent() and _IG_FetchXmlContent() to access data from external domains. Here’s how I’ve used it to download XAML from cross domains and populate the Silverlight Scene graph:
var m_root = null; function OnLoad(sender, context, source) function GotXaml(xaml)
m_root = source;
var host = m_root.getHost();
var canvas = host.content.CreateFromXaml(xaml);
var m_root = null;
function OnLoad(sender, context, source)
Now that’s Synergy!
Thank you Google for making Silverlight better!