Index: lams_central/web/includes/javascript/common.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/common.js,v diff -u -r1.5 -r1.6 --- lams_central/web/includes/javascript/common.js 7 May 2008 03:52:39 -0000 1.5 +++ lams_central/web/includes/javascript/common.js 11 Apr 2012 17:07:18 -0000 1.6 @@ -95,4 +95,16 @@ window.opener.location.href = monitoringURL; } } + + //does Ajax call (pure JavaScript without relying on frameworks) + function doAjaxCall(url) { + var xmlhttp; + if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari + xmlhttp = new XMLHttpRequest(); + } else {// code for IE6, IE5 + xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); + } + xmlhttp.open("POST", url, true); + xmlhttp.send(); + } \ No newline at end of file