summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/common.js
diff options
context:
space:
mode:
authorroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2005-10-21 12:12:23 +0000
committerroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2005-10-21 12:12:23 +0000
commita859a759e8ca812a55ac36aba2e36446c17574e0 (patch)
tree4b91e5aa1cd01d69facdc1194137ac46666c3d0a /roundcubemail/program/js/common.js
parente8ee29555cd7845b3fbfcaab6f012608f80ad442 (diff)
Improved support for UTF-8 and other charsets
git-svn-id: https://svn.roundcube.net/trunk@50 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/common.js')
-rw-r--r--roundcubemail/program/js/common.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js
index 2d2c2e925..78fecf8fe 100644
--- a/roundcubemail/program/js/common.js
+++ b/roundcubemail/program/js/common.js
@@ -6,7 +6,7 @@
| Copyright (C) 2005, RoundCube Dev, - Switzerland |
| Licensed under the GNU GPL |
| |
- | Modified: 19.08.2005 (tbr) |
+ | Modified:2005/10/21 (roundcube) |
| |
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
@@ -81,6 +81,14 @@ function roundcube_browser()
(this.ie && this.win && this.vendver>=5.5) || this.safari);
this.opacity = (this.mz || (this.ie && this.vendver>=5.5 && !this.opera) || (this.safari && this.vendver>=100));
this.cookies = navigator.cookieEnabled;
+
+ // test for XMLHTTP support
+ this.xmlhttp_test = function()
+ {
+ var activeX_test = new Function("try{var o=new ActiveXObject('Microsoft.XMLHTTP');return true;}catch(err){return false;}");
+ this.xmlhttp = (window.XMLHttpRequest || (window.ActiveXObject && activeX_test())) ? true : false;
+ return this.xmlhttp;
+ }
}