Location: PHPKode > projects > WB News > admin/js/standard.js.php
<?php

/* $Id: standard.js.php,v 1.1.2.2 2008/06/21 03:17:43 pmcilwaine Exp $ */

?>
function addEvent(obj, evType, fn, useCapture){
  if (obj.addEventListener){
    obj.addEventListener(evType, fn, useCapture);
    return true;
  } else if (obj.attachEvent){
    var r = obj.attachEvent("on"+evType, fn);
    return r;
  } else {
    alert("Handler could not be attached");
  }
}

function AJAX()
{
	var o = false;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
		try {
			o = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				o = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				o = false;
			}
		}
	@end @*/
	if (!o && typeof XMLHttpRequest!='undefined') {
		o = new XMLHttpRequest();
	}

	return o;
}
Return current item: WB News