tianxz
07-08-2009, 06:52 PM
There is a weather json call base IP:
http://mrlu.host22.com/weather.php?callback=cb, cb is function.
the result is :
cb({"city":"London,UK","fdate":"2009-07-08","ctime":"2009-07-08 16:55:54 +0000","unit"
:"US","cond":"Mostly Cloudy","ftemp":"66","ctemp":"19","humi":"Humidity: 64%","icon":"/ig/images/weather
/mostly_cloudy.gif","week1":"Wed","low1":"56","high1":"70","icon1":"/ig/images/weather/chance_of_storm
.gif","cond1":"Scattered Tnunderstorms","week2":"Thu","low2":"61","high2":"77","icon2":"/ig/images/weather
/partly_cloudy.gif","cond2":"Partly Cloudy","week3":"Fri","low3":"68","high3":"79","icon3":"/ig/images
/weather/chance_of_storm.gif","cond3":"Isolated Thunderstorms","week4":"Sat","low4":"58","high4":"77"
,"icon4":"/ig/images/weather/chance_of_storm.gif","cond4":"Scattered Tnunderstorms"});
It has some problem. sometime, it can not result. Could you help debug it? Thank you.
http://mrlu.host22.com/weather.php?callback=cb, cb is function.
the result is :
cb({"city":"London,UK","fdate":"2009-07-08","ctime":"2009-07-08 16:55:54 +0000","unit"
:"US","cond":"Mostly Cloudy","ftemp":"66","ctemp":"19","humi":"Humidity: 64%","icon":"/ig/images/weather
/mostly_cloudy.gif","week1":"Wed","low1":"56","high1":"70","icon1":"/ig/images/weather/chance_of_storm
.gif","cond1":"Scattered Tnunderstorms","week2":"Thu","low2":"61","high2":"77","icon2":"/ig/images/weather
/partly_cloudy.gif","cond2":"Partly Cloudy","week3":"Fri","low3":"68","high3":"79","icon3":"/ig/images
/weather/chance_of_storm.gif","cond3":"Isolated Thunderstorms","week4":"Sat","low4":"58","high4":"77"
,"icon4":"/ig/images/weather/chance_of_storm.gif","cond4":"Scattered Tnunderstorms"});
It has some problem. sometime, it can not result. Could you help debug it? Thank you.