Archive for the 'api' Category

IE9 gets a Web Timing API to measure performance

Web site performance is a very important topic. We should not let our end users wait for our sites and optimizing them for load time and rendering can save us thousands of dollars in traffic. There is a lot of great content out there on performance (spearheaded by Yahoo a few years back). When it [...]

Desktop Notifications with Webkit

Mohit Muthanna has a nice blog post explaining how you can create desktop notifications with the latest Webkit/Chrome.

There are essentially three API calls you use:

window.webkitNotifications.requestPermission(callback) - Request access to Desktop Notifications for this domain.
window.webkitNotifications.checkPermission() - Returns 0 if this domain has Desktop Notification access.
window.webkitNotifications.createNotification(icon,title,body) - Returns a popup notification instance, which you can display by [...]

Addmap.js – automatically analyse a text for geo locations and add a map

As part of an upcoming article on geo location I am putting together a few Geo Toys for myself and here is the first one. Addmap.js is a JavaScript that analyses an elements text content, finds geographical locations and links them to Google Maps. It also adds a map preview and a list of the [...]

Pure CSS bar charts as a simple API

I am right now working on a high-traffic project that will run in a sandbox that doesn’t allow me to pull third party JavaScript or use canvas/Flash. Yet I need to generate bar charts from a set of data.

The solution to me was to create the charts from HTML using CSS. There have been some [...]

Downloadify – create downloads on the fly without server interaction

Downloadify is an interesting solution to offer files as downloads without having to create temporary files and loop through a script that sets a force-download header.
As shown in the demo page offering a file for download and setting its content is as easy as this:
PLAIN TEXT
JAVASCRIPT:

Downloadify.create(’downloadify’,{

  filename: function(){

    return document.getElementById(’filename’).value;

  },

  data: function(){ [...]

Client-Side tar and LZMA compression

The BrowserPlus team of Yahoo released a client-side compression API. As explained in the following screencast, the JavaScript API allows you to pack and compress files on the client with LZMA or tar.

Client Side Compression from Lloyd Hilaiel on Vimeo.
You can read more about the implementation or try out the live demo (requires BrowserPlus)
Using [...]

Pimping JSON - YQL now offers JSONP-X!

Yesterday’s announcement of Yahoo’s YQL now supporting insert, update and delete overshadowed another interesting new feature: JSONP-X output.
Here’s what it is and why it is useful: YQL data can be returned in XML which is annoying to use in JavaScript (for starters because of crossdomain issues in Ajax). JSON is much easier as it [...]

GeoMaker - geo locations as microformats or a map from texts or URLs

As preparation for an upcoming tech talk about Placemaker I thought it would be good to take a bit of the pain out of the geolocation service by making an interface for it. Placemaker works the following way: you post some content or a URL to it, it goes through the content or gets the [...]

Bing API does callback checking for JSON-P

I just looked through the API of Microsoft’s new Bing search and found an interesting step in protecting code from throwing errors.
When you provide a JSON output for developers it does make sense to also allow for a callback parameter. That way your code can be used in script nodes without having to use any [...]

Another traditional media opens up: The Guardian releases new data API

It is great to see when traditional media takes on some of the ideas we got to understand as de-facto standards in the new media world. One of the things that until a few years ago was unthinkable is to allow third parties to display your precious data.
This has changed now and more and [...]