diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2008-11-17 09:56:24 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2008-11-17 09:56:24 +0100 |
commit | f9d6f26cbf330d3c951a8801f963e685f64cc39c (patch) | |
tree | 248f9f553302712dbdcc6b0bd3a816e36bb9e2a5 /qx08/source/class/tr/Server.js | |
parent | d8b465e26599268b8eded0732e8f29062556997e (diff) | |
download | smokeping-f9d6f26cbf330d3c951a8801f963e685f64cc39c.tar.gz smokeping-f9d6f26cbf330d3c951a8801f963e685f64cc39c.tar.xz |
added initial 0.8 port ... not quite working yet
Diffstat (limited to 'qx08/source/class/tr/Server.js')
-rw-r--r-- | qx08/source/class/tr/Server.js | 41 |
1 files changed, 9 insertions, 32 deletions
diff --git a/qx08/source/class/tr/Server.js b/qx08/source/class/tr/Server.js index c58ee53..af9cbc4 100644 --- a/qx08/source/class/tr/Server.js +++ b/qx08/source/class/tr/Server.js @@ -1,6 +1,9 @@ /* ************************************************************************ -#module(Tr) -************************************************************************ */ + Copyright: 2008, OETIKER+PARTNER AG + License: GPL + Authors: Tobias Oetiker + $Id: $ +* ************************************************************************ */ /** * A Tr specific rpc call which works @@ -10,47 +13,20 @@ qx.Class.define('tr.Server', { type : "singleton", - - - /* - ***************************************************************************** - CONSTRUCTOR - ***************************************************************************** - */ - /** - * @param local_url {String} When running the application in file:// mode. - * where will we find our RPC server. - */ + * @param local_url {String} When running the application in file:// mode, where will we find our RPC server. + */ construct : function(local_url) { this.base(arguments); this.set({ timeout : 60000, url : 'tr.cgi', - serviceName : 'Tr', - crossDomain : true + serviceName : 'tr' }); - - return this; }, - - - - /* - ***************************************************************************** - MEMBERS - ***************************************************************************** - */ - members : { - /* - --------------------------------------------------------------------------- - CORE METHODS - --------------------------------------------------------------------------- - */ - /** * Tell about the BaseUrl we found. * @@ -71,6 +47,7 @@ qx.Class.define('tr.Server', { */ setLocalUrl : function(local_url) { if (document.location.host === '') { + this.setCrossDomain(true); this.setUrl(local_url + 'tr.cgi'); } } |