2010年3月11日 星期四

2010年1月31日 星期日

2010年1月25日 星期一

2010年1月24日 星期日

Day of RESTful

http://www.geonames.org/postalCodeLookupJSON?postalcode=91748&country=US

2010年1月21日 星期四

Ready-made JSONP services

Now that you know how to use JSONP, you can start using some ready-made JSONP Web services to build your applications and mashups. Following are some starting points for your next development projects. (Hint: You may copy-and-paste the given URLs into the address field of your browser to examine the resulting JSONP response.)

Digg API: Top stories from Digg:

http://services.digg.com/stories/top?appkey=http%3A%2F%2Fmashup.com&type=javascript
&callback=?

Geonames API: Location info for a zip-code:

http://www.geonames.org/postalCodeLookupJSON?postalcode=10504&country=US&callback=?

Flickr API: Most recent cat pictures from Flickr:

http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any
&format=json&jsoncallback=?

Yahoo Local Search API: Search pizza in zip-code location 10504:

http://local.yahooapis.com/LocalSearchService/V3/localSearch?appid=YahooDemo&query=pizza
&zip=10504&results=2&output=json&callback=?


Cross-domain communications with JSONP, Part 1: Combine JSONP and jQuery to quickly build powerful mashups

Cross-domain communications with JSONP, Part 1: Combine JSONP and jQuery to quickly build powerful mashups