- now you can specify the following types for our proxy: "rss", "generic" or "none" (this is useful when developing gadgets)
// example - Fetch RSS feed
var r = Web.Network.createRequest(
Web.Network.Type.XML,
m_feedUrl,
{proxy:"rss", numItems:m_numItems},
OnContentCallback);
- Data sources can be specified in the manifest XML and will be made available to the gadget as an xml response object. This simplifies fetching data in a gadget since the gadget author no longer needs to call CreateRequest. The syntax is:
//you specify these in your manifest.xml file
<item>
<link binding:type="xml" name="mainui">http://www.somewhere.com/mainui.xml</link>
</item>
<item>
<link binding:type="xml" name="rss">http://www.somewhere.com/rss.xml</link>
</item>
// and reference it in your js file
Gadget.Demo= function(p_elSource, p_args, p_namespace) {
Gadget.Demo.initializeBase(this, arguments);
this.initialize = function(p_objScope){
Gadget.Demo.getBaseMethod(this, "initialize", "Web.Bindings.Base").call(this, p_objScope);
// Embed xhtml fragment from the mainui xml
p_elSource.innerHTML = p_args.xmlSources.mainui.responseText;
// Process RSS
var parseRSS = Start.Parser.ParseStartResponse(p_args.xmlSources.rss.responseText);
}
} 
More from live.com blog in
Microsoft News