XMLHTTPRequest Creation

This is the way to get AJAX going…and gotta love that browsers all handle it differently.

[js]try { req = new XMLHttpRequest(); / e.g. Firefox / } catch(e) { try {

req = new ActiveXObject(\"Msxml2.XMLHTTP\");  /* some versions IE */

} catch (e) {

try {
req = new ActiveXObject("Microsoft.XMLHTTP");  /* some versions IE */
} catch (E) {
  req = false;
}

} } [/js]

Sat, 01 Jul 2006 02:43 Posted in

Comment XMLHTTPRequest Creation