Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/07/2009, 22:58
Avatar de pablolennin
pablolennin
 
Fecha de Ingreso: diciembre-2008
Ubicación: Trujillo
Mensajes: 169
Antigüedad: 15 años, 5 meses
Puntos: 1
que hace este codigo ActiveXObject("Msxml2.XMLHTTP");

tengo este script que encontre en el internet
Código:
function Ajax(){
 var xmlhttp=false;
 try{
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");/que hace esto
 }catch(e){
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");//que hace esto
  }catch(E){
    xmlhttp = false;
  }
 }
 if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  xmlhttp = new XMLHttpRequest(); //que hace esto
 }
 return xmlhttp;
}
function OrdenarPor(campo, orden){
 //especificamos el div donde se mostrará el resultado
 divListado = document.getElementById('listado');

 ajax=Ajax();
 //especificamos el archivo que realizará el listado
 //y enviamos las dos variables: campo y orden
 ajax.open("GET", "listado.php?campo="+campo+"&orden="+orden);
 ajax.onreadystatechange=function() {
  if (ajax.readyState==4) {
   divListado.innerHTML = ajax.responseText//que hace esto
  }
 }
 ajax.send(null)
}
gracias