
The images come from Yahoo's massive ( and massively good) photo app, Flickr, which has initiated a Project Weather that seems built for an app like this. It doesn't change in real time, but it's always a great shot. The photo, you see, changes based on both location and weather. Instead of one of those weather graphics with smiling sunshine or evil thunderbolts, the first thing you'll see upon opening the Yahoo! Weather app is a beautiful image, like the one to the right, of your current city - and its current conditions, but photographically. But once you download it, you'll never want to wait around for a local weather report - or scroll through a weather-service site - for your daily get-up-and-get-dressed forecast again. (It's available at Google Play, too.) It will literally change your life, given how addicted human beings of the smartphone era have become with checking the weather on their phones. Yahoo already helps power the Apple weather app that comes built in to every iPhone, but the newly mobile first company has just launched its own proprietary meteorological wonder - indeed, this photo-first new app is so wondrous that you should go download Yahoo! Weather from the App Store right now. Y.log("When you retrieve weather RSS data, relevant steps in the process will be reported here in the logger/console.This article is from the archive of our partner. Use the Event Utility to wire the Get RSS button Add the click handler to the Get Weather RSS button as soon Use:'flash', //This is the xdrConfig id we referenced above.ĭataType:'xml' //Indicate the data are XML, not string. Y.log("Submitting request zip code: " + iZip, "info", "example") Var queryString = encodeURI('?p=' + iZip) Create a querystring from the input value: When the Get RSS button is clicked, this function will fire Y.log("Failure handler called http status: " + o.status, "info", "example") ĭiv.set("innerHTML", o.status + " " + o.statusText) Provide a function that can help debug failed

Y.log("Success handler is complete.", "info", "example") Var descriptionNode = root.getElementsByTagName('description').firstChild.nodeValue ĭiv.set("innerHTML", "" + oTitle + "" + "" + oDateTime + "" + descriptionNode) Var oDateTime = root.getElementsByTagName('lastBuildDate').firstChild.nodeValue Var oTitle = root.getElementsByTagName('description').firstChild.nodeValue Var root = o.responseXML.documentElement

Y.log("Success handler called handler will parse the retrieved XML and insert into DOM.", "info", "example") The success handler will find the response Define a function to handle a successful response from Id:'flash', //We'll reference this id in the xdr configuration of our transaction. Get a Node reference to the div we'll use for displaying Create a YUI instance, using IO, for this example: //Create a YUI instance including support for cross-domain IO:
