json

TwitterFacebook
Get flash to fully experience Pearltrees
http://natbat.net/2008/Aug/27/addSizes/ Often in the development of a site I come across the need to display the size of a document next to the link targeting it. I also like to display the type of file the link targets, for example, when linking to pdfs, mp3s or Word documents. These indications distinguish the 'attachment' link from a normal web link, whilst also giving the user some inkling of the time they will need to wait to view the resulting content. So I was pretty excited when Simon bounded in from work and enthusiastically demonstrated json-head , a Google App Engine application he built on the train home.

addSizes.js: Snazzy automatic link file-size generation | Natali

Cross-browser —supports IE6+, Firefox 2+, Safari 3+, iPhone 100% JavaScript —no Flash required Small —2.4KB minified Like JavaScript includes, this works because CSS is not subject to the same-origin policy that affects XMLHttpRequest. CSSHttpRequest functions similarly to JSONP , and is limited to making GET requests. Unlike JSONP, untrusted third-party JavaScript cannot execute in the context of the calling page. A request is invoked using the CSSHttpRequest.get(url, callback) function: http://nb.io/hacks/csshttprequest

CSSHttpRequest - Hacks - nb.io