3 The rs_init_object javascript function defined by this include instantiates and
4 returns a new object for XMLHTTP communication: on Microsoft browsers, an
5 ActiveXObject ("Msxml2.XMLHTTP" or "Microsoft.XMLHTTP"), or on other browsers,
6 an XMLHttpRequest object.
10 <& /elements/rs_init_object.html &>
14 my $initialized = 0; #won't work if component is "preloaded"... so don't do that
16 % if ( ! $initialized++ ) {
17 <SCRIPT TYPE="text/javascript">
19 function rs_init_object() {
22 A=new ActiveXObject("Msxml2.XMLHTTP");
25 A=new ActiveXObject("Microsoft.XMLHTTP");
30 if(!A && typeof XMLHttpRequest != "undefined")
31 A = new XMLHttpRequest();
33 alert("Can't create XMLHttpRequest object");