

See animated sunrise, sunset, wind, and pressure modules. Get all the details: wind, pressure, and chance of precipitation. Stunning photos match your location, time of day, and current conditions. Prepare for your day with the most accurate hourly, 5-day, and 10-day forecasts. Y.log("When you retrieve weather RSS data, relevant steps in the process will be reported here in the logger/console.Experience the weather | Apple Design Award Winner 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:
