summaryrefslogtreecommitdiffstats
path: root/qx08/source/class/tr/Server.js
diff options
context:
space:
mode:
Diffstat (limited to 'qx08/source/class/tr/Server.js')
-rw-r--r--qx08/source/class/tr/Server.js41
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');
}
}