From d1e09e2e6f9db62bbab84abb53e23ee73764178a Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Sun, 31 Dec 2006 20:12:12 +0000 Subject: r20446: rename swat directory to swat.obsolete; keeping it around since there is lots of useful info in it. (This used to be commit 5f9f72a9cfab80561b23284001b67c4ea961757b) --- swat.obsolete/scripting/client/call.js | 118 +++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 swat.obsolete/scripting/client/call.js (limited to 'swat.obsolete/scripting/client/call.js') diff --git a/swat.obsolete/scripting/client/call.js b/swat.obsolete/scripting/client/call.js new file mode 100644 index 0000000000..2886471db2 --- /dev/null +++ b/swat.obsolete/scripting/client/call.js @@ -0,0 +1,118 @@ +/* + client side js functions for remote calls into the server + + Copyright Andrew Tridgell 2005 + released under the GNU GPL Version 2 or later +*/ + +var __call = new Object(); + +/* + we can't use the qooxdoo portability layer for this, as it assumes + you are using an XML transport, so instead replicate the portability + code for remote calls here. Don't look too closely or you will go + blind. +*/ +__call._activex = window.ActiveXObject && !(new QxClient).isOpera() ? true : false; +__call._activexobj = null; +__call._ok = QxXmlHttpLoader._http || QxXmlHttpLoader._activex; + +if (__call._activex) { + var servers = ["MSXML2", "Microsoft", "MSXML", "MSXML3"]; + for (var i=0; i