Next question regarding multiple swa alerts, hoping its a quick modification! In the code below I am receiving multiple swa's from weather.com. Im am displaying the first alert of the three recieved below correctly. How would one loop to pick up the remaining alerts since they all seem to have the same xml tag?
//
<swa> <t>Special Weather Statementt>
a>
<t>Severe Thunderstorm Watch until Thu Jun 24 2010 08:00 PM EDTt>
a>
swa>\\
// Display Severe Weather Alert
try {
var swa = weather.swa.a[0].t;
}
catch (e) {
var swa = "";
}
CF.widget("SWA").label = swa;
//System.print("Severe Weather Alert: " +swa);
Thanks as always!
Last edited by pjjameso on June 24, 2010 13:52.