author | tgambet |
Wed, 24 Aug 2011 17:52:14 -0400 | |
changeset 52 | df9f2706c5ce |
parent 50 | 08c0f095c0f8 |
child 53 | 7b4af36a74b5 |
src/main/resources/scripts/Utils.js |
--- a/src/main/resources/scripts/Utils.js Wed Aug 24 17:54:23 2011 -0400 +++ b/src/main/resources/scripts/Utils.js Wed Aug 24 17:52:14 2011 -0400 @@ -175,6 +175,10 @@ http.send(body); if (async == false) return http.responseText; + }, + + requestJSON : function (uri, body, callback, async) { + return eval('(' + Util.request(uri, body, callback, async) + ')'); } };