<?xml version="1.0" encoding="UTF-8" ?> 
<Module> 
<ModulePrefs title="Weather Forecast" width="300" height="250" scrolling="false"
             directory_title="Weather CSC"
             author="Amit Pathak"
             author_email="Amit.feedback+amit.pathak83@gmail.com"
             author_affiliation="CSC"
             author_location="INDIA"
             description="Enter your zip code to get a local map with weather for various regions nearby.">
  <Locale lang="en" country="us"/>
</ModulePrefs> 
<UserPref name="clickurl" datatype="hidden" default_value="DEBUG"/>
<UserPref name="aiturl" datatype="hidden" default_value="DEBUG"/> 
<Content type="html"> 
<![CDATA[ 
<script type="text/javascript">
function current() {
var sourceTZ= document.getElementById('currentZone').value;
var url ='http://weather.yahooapis.com/forecastrss?p='+sourceTZ+'&u=c';
_IG_FetchXmlContent(url, showCurrent);}
function showCurrent(responseText) {
var title = responseText.getElementsByTagName("yweather:condition").item(0).getAttribute("text");
var timedate= responseText.getElementsByTagName("yweather:condition").item(0).getAttribute("date");
var temperature= responseText.getElementsByTagName("yweather:condition").item(0).getAttribute("temp");
document.getElementById("temperature").value=temperature;
document.getElementById("condition").value=title;
document.getElementById("dateTime").value=timedate;
}
</script>
<body>
<form name="time">
<table align="center" height="200" "border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="2"><h5>Please Select City to Find Weather</h5></td></tr>
<tr><td><h5>City</h5></td><td>
<select name="currentZone"onChange="current()">
<option value="INXX0096">New Delhi</option></select>
</td></tr>
<tr> <td valign="top"><h5>Current Date and Time &nbsp;&nbsp;</h5></td> 
<td valign="top"><input TYPE="text" NAME="dateTime" id="dateTime" SIZE="20"></td>
</tr>
<tr><td valign="top"><h5>Current Temperature in Deg Cel&nbsp;&nbsp;</h5></td>
<td valign="top"><input TYPE="text" NAME="temperature" id="temperature" SIZE="20"></td>
</tr>
<tr><td valign="top"><h5>Weather Condition &nbsp;&nbsp;</h5></td>
<td valign="top"><input TYPE="text" NAME="condition" id="condition" SIZE="20"></td>
</tr>
<tr><td valign="top" colspan="2"><input type="button" value="Get Weather" onclick="current()"/></td></tr></table></form>]]>
 </Content>
</Module> 









