From 22463d8a530f415c2167e72a2215cd4ed58cfb25 Mon Sep 17 00:00:00 2001 From: Matthew Stone Date: Thu, 19 Sep 2013 16:45:40 +0100 Subject: [PATCH] Ajax Handler This file contains the function that creates the XMLHttpRequest or ActiveXObject("Microsoft.XMLHTTP") objects to enable ajax events --- www/public_html/scripts/ajax.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 www/public_html/scripts/ajax.js diff --git a/www/public_html/scripts/ajax.js b/www/public_html/scripts/ajax.js new file mode 100644 index 0000000..742535e --- /dev/null +++ b/www/public_html/scripts/ajax.js @@ -0,0 +1,9 @@ +function GetXmlHttpObject() { + if (window.XMLHttpRequest) { + return new XMLHttpRequest(); + } + if (window.ActiveXObject) { + return new ActiveXObject("Microsoft.XMLHTTP"); + } + return null; +} \ No newline at end of file