Ajax is surely one of the best things that came along with the newest features of the Web 2.0 wave. But there's a catch: Ajax is still an immature standard because of the lack of some basic functionalities. First of all, the native handling of content types lacks of support to JSON. In fact, you have the
responseXML properties as native features of the XMLHttpRequest object (or XHR for short). There's no
responseJSON, though. So you have to use the
eval function in order to parse and execute a JSON file, but this approach exposes your code to some nasty security problems.