summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/vaadinBootstrap.js
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-11-29 16:13:22 +0200
committerArtur Signell <artur@vaadin.com>2012-11-29 16:16:10 +0200
commite451bc52fd848bb1cc654b2d250802dd51eb2350 (patch)
tree8ad88bfb9c31a623292f293bea41693a44602c55 /WebContent/VAADIN/vaadinBootstrap.js
parent8693cae9f026a2fb1d69cb525511773042a72162 (diff)
downloadvaadin-framework-e451bc52fd848bb1cc654b2d250802dd51eb2350.tar.gz
vaadin-framework-e451bc52fd848bb1cc654b2d250802dd51eb2350.zip
Fall back to activex xml http if XMLHttpRequest is disabled (#10423)
Change-Id: I91eeaae42859cd056943b5fd040a0d107ed4ec6e
Diffstat (limited to 'WebContent/VAADIN/vaadinBootstrap.js')
-rw-r--r--WebContent/VAADIN/vaadinBootstrap.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/WebContent/VAADIN/vaadinBootstrap.js b/WebContent/VAADIN/vaadinBootstrap.js
index c4617df25c..60f1b02452 100644
--- a/WebContent/VAADIN/vaadinBootstrap.js
+++ b/WebContent/VAADIN/vaadinBootstrap.js
@@ -101,7 +101,12 @@
// Timestamp to avoid caching
url += '&' + (new Date()).getTime();
- var r = new XMLHttpRequest();
+ var r;
+ try {
+ r = new XMLHttpRequest();
+ } catch (e) {
+ r = new ActiveXObject("MSXML2.XMLHTTP.3.0");
+ }
r.open('POST', url, true);
r.onreadystatechange = function (aEvt) {
if (r.readyState == 4) {