Skip to main content

Posts

Showing posts from October, 2010

Checking for Ajax Request

function AjaxRequest() { var request = null; if(typeof window.XMLHttpRequest != "undefined") {/*most modern browsers*/ request = new XMLHttpRequest(); } else if(typeof window.ActiveXObject != "undefined") {/*IE 6 browswer*/ try { request = new ActiveXObject("Microsoft.XMLHTTP"); } catch(err) { request = null; } } return request; }