From 164db7b074ba08e77afabb716e88737245c468f2 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Sat, 25 Feb 2012 17:30:59 +0000 Subject: [PATCH] Added test for IE XML HTTP and added link to wiki article --- static/js/pad.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/static/js/pad.js b/static/js/pad.js index 537ebed2..fd005adc 100644 --- a/static/js/pad.js +++ b/static/js/pad.js @@ -146,6 +146,12 @@ function savePassword() document.location=document.location; } +function ieTestXMLHTTP(){ + // Test for IE known XML HTTP issue + if ($.browser.msie && !window.XMLHttpRequest){ + $("#editorloadingbox").html("You do not have XML HTTP enabled in your browser. Fix this issue"); + } +} function handshake() { var loc = document.location; @@ -364,7 +370,6 @@ var pad = { { return clientVars.userIsGuest; }, - // getUserId: function() { return pad.myUserInfo.userId; @@ -384,6 +389,8 @@ var pad = { $(document).ready(function() { + // test for XML HTTP capabiites + ieTestXMLHTTP(); // start the custom js if (typeof customStart == "function") customStart(); getParams();