Sha256: 80843fb00b64a1fc95dfddc41f145c3893f09823f1a3654f1975b24a5f1120d1
Contents?: true
Size: 458 Bytes
Versions: 20
Compression:
Stored size: 458 Bytes
Contents
/* FIXME: Later on this should be a class */ JsChat.Request = { get: function(url, callback) { new Ajax.Request(url, { method: 'get', parameters: { time: new Date().getTime(), room: PageHelper.currentRoom() }, onFailure: function() { Display.add_message("Server error: couldn't access: #{url}".interpolate({ url: url }), 'server'); }, onComplete: function(transport) { return callback(transport); } }); } };
Version data entries
20 entries across 20 versions & 1 rubygems