prototype+json ajax使用

prototype+json ajax应用Using JSON with AjaxUsing JSON with Ajax is very straightforward, simply inv

prototype+json ajax应用
Using JSON with Ajax

Using JSON with Ajax is very straightforward, simply invoke String#evalJSON on the transport’s responseText property:

?

new Ajax.Request('/some_url', {   method:'get',   requestHeaders: {Accept: 'application/json'},   onSuccess: function(transport){     var json = transport.responseText.evalJSON(true);   } });
?