I have write the following code to implement webservice in ios and I have included all the js files mention there but still it is not working.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>90210 Lookup</title>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" src="script/xui.js"></script>
<script type="text/javascript" charset="utf-8">
x$.data = {};
x$(window).load(function(e){
x$("#returned_information").xhr("http://ws.geonames.org/postalCodeSearchJSON?postalcode=90210&maxRows=10",
{ callback: function(){
var codes = eval("("+this.responseText+")").postalCodes; /* this should be an array */
x$("#returned_information").html(codes[0].placeName);
}
}
);
});
</script>
</head>
<body>
<h1 id="returned_information">
Put Stuff in Me
</h1>
</body>
</html>
请告诉我我我我在那儿失踪了。