Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/04/2011, 10:13
Avatar de maycolalvarez
maycolalvarez
Colaborador
 
Fecha de Ingreso: julio-2008
Ubicación: Caracas
Mensajes: 12.120
Antigüedad: 15 años, 9 meses
Puntos: 1532
Respuesta: Ajax + FireFox

existen diversas variantes para poder obtener el XMLHttpRequest en diferentes Navegadores, y son fáciles de conseguir buscándolas en tutoriales, yo por ejemplo uso ésta y hasta ahora no me he topado con navegador en donde falle:

Código Javascript:
Ver original
  1. function getajax(){
  2.         try {
  3.             xmlhttpobj = new ActiveXObject("Msxml2.XMLHTTP");
  4.         } catch (ex) {
  5.             try {
  6.                 xmlhttpobj= new ActiveXObject("Microsoft.XMLHTTP");
  7.             } catch (ex2) {
  8.                 xmlhttpobj= false;
  9.             }
  10.         }
  11.         if (!xmlhttpobj && typeof XMLHttpRequest!='undefined') {
  12.             xmlhttpobj = new XMLHttpRequest();
  13.         }
  14.         return xmlhttpobj;
  15.     }
__________________
¡Por favor!: usa el highlight para mostrar código
El que busca, encuentra...