My JavaScript sometimes crashes on this line:
var json = eval(\'(\' + this.responseText + \')\');
Crashes are caused when the argument of <
Hers's the jQuery alternative...
try { var jsonObject = jQuery.parseJSON(yourJsonString); } catch(e) { // handle error }