From baf66d862615086451da4e96f912c562a86d32db Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 5 Aug 2005 19:36:15 +0000 Subject: r9136: made the 'AJAJ' code portable to IE and Opera (This used to be commit b6b531533e2c4d6d927df29905e49a775e92f3c1) --- swat/scripting/client/call.js | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'swat') diff --git a/swat/scripting/client/call.js b/swat/scripting/client/call.js index bb89390e45..d1671ef70f 100644 --- a/swat/scripting/client/call.js +++ b/swat/scripting/client/call.js @@ -5,6 +5,37 @@ 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