PDA

View Full Version : how to debug the json call


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.

tianxz
07-09-2009, 02:06 PM
It will return the blank. I don't what's problem. Could you help me test it?

Kor
07-09-2009, 02:33 PM
Sounds confusing. It returns blank what? When?

tianxz
07-09-2009, 02:54 PM
could you get the information as normal?