rlm@0: // method that sets up a cross-browser XMLHttpRequest object rlm@0: function getHTTPObject() { rlm@0: var http_object; rlm@0: rlm@0: // MSIE Proprietary method rlm@0: rlm@0: /*@cc_on rlm@0: @if (@_jscript_version >= 5) rlm@0: try { rlm@0: http_object = new ActiveXObject("Msxml2.XMLHTTP"); rlm@0: } rlm@0: catch (e) { rlm@0: try { rlm@0: http_object = new ActiveXObject("Microsoft.XMLHTTP"); rlm@0: } rlm@0: catch (E) { rlm@0: http_object = false; rlm@0: } rlm@0: } rlm@0: @else rlm@0: xmlhttp = http_object; rlm@0: @end @*/ rlm@0: rlm@0: rlm@0: // Mozilla and others method rlm@0: rlm@0: if (!http_object && typeof XMLHttpRequest != 'undefined') { rlm@0: try { rlm@0: http_object = new XMLHttpRequest(); rlm@0: } rlm@0: catch (e) { rlm@0: http_object = false; rlm@0: } rlm@0: } rlm@0: rlm@0: return http_object; rlm@0: }