Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/03/2012, 23:14
Avatar de rigobcastro
rigobcastro
 
Fecha de Ingreso: febrero-2012
Ubicación: Lejanías
Mensajes: 69
Antigüedad: 13 años
Puntos: 21
Respuesta: Mas de una variable

Cita:
Iniciado por zerokilled Ver Mensaje
ninguno, simplemente esta usando puro javascript.
No, esto es AJAX desde Javascript Nativo o puro xD!

Código Javascript:
Ver original
  1. function loadXMLDoc()
  2. {
  3. var xmlhttp;
  4. if (window.XMLHttpRequest)
  5.   {// code for IE7+, Firefox, Chrome, Opera, Safari
  6.   xmlhttp=new XMLHttpRequest();
  7.   }
  8. else
  9.   {// code for IE6, IE5
  10.   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  11.   }
  12. xmlhttp.onreadystatechange=function()
  13.   {
  14.   if (xmlhttp.readyState==4 && xmlhttp.status==200)
  15.     {
  16.     document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
  17.     }
  18.   }
  19. xmlhttp.open("GET","ajax_info.txt",true);
  20. xmlhttp.send();
  21. }

Y crear un array para las variables, funcionaria ???

Última edición por rigobcastro; 01/03/2012 a las 23:19