這Request.JSON
http://mootools.net/demos/?demo=Request.JSON在這樣的方式使用JSON數據,負載國家的國旗國地名API使用JSONP技術
var data = {"previews":[
{"Countrycode":"us", "src":"us.jpg", "description":"desc will be here"},
{"Countrycode":"uk", "src":"uk.jpg", "description":"desc will be here"},
]};
在上述方法中,我們使用Countrycode
& images
每個圖像我們的自我書寫名字。
我在尋找通過http://api.geonames.org/export/geonamesData.js?username=orakzai使用Geonames
通過http://www.geonames.org/flags/x/xx.gif檢索Countrycode
和CountryFlags
其中xx是2個字母的ISO國家代碼
其確定爲圖像,但如何從http://api.geonames.org/export/geonamesData.js得到'Countrycode' ?username = orakzai – Arif
它的腳本,這裏是講述如何加載腳本的mootools頁面:[點擊這裏](http://mootools.net/docs/more/Utilities/Assets),這裏是jQuery [點擊這裏] {http://api.jquery.com/jQuery.getScript/) –
網址現在採用以下格式:http://geotree.geonames.org/img/flags18/xx.png –