Skip to content
This repository has been archived by the owner on Jan 19, 2020. It is now read-only.

Commit

Permalink
Ajax Handler
Browse files Browse the repository at this point in the history
This file contains the function that creates the XMLHttpRequest or
ActiveXObject("Microsoft.XMLHTTP") objects to enable ajax events
  • Loading branch information
Matthew Stone committed Sep 19, 2013
1 parent 6afe1fb commit 22463d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions www/public_html/scripts/ajax.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function GetXmlHttpObject() {
if (window.XMLHttpRequest) {
return new XMLHttpRequest();
}
if (window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
}
return null;
}

0 comments on commit 22463d8

Please sign in to comment.