Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/01/2009, 06:31
Avatar de ZiTAL
ZiTAL
 
Fecha de Ingreso: marzo-2004
Ubicación: Bermio (Bizkaia)
Mensajes: 1.545
Antigüedad: 20 años, 2 meses
Puntos: 62
De acuerdo Respuesta: Problema con Tabs Ajax en IE !

Prueba con:
Código javascript:
Ver original
  1. var xmlhttp = function()
  2.     {
  3.         var a;try{a = new XMLHttpRequest();}
  4.         catch(e){try{a = new ActiveXObject('Msxml2.XMLHTTP');}
  5.         catch(e){try{a = new ActiveXObject('Microsoft.XMLHTTP');}
  6.         catch(e){alert('Your browser doesn\'t support ajax');a=false;}
  7.         }}return a;
  8.     };
  9.     var petition = new xmlhttp();
  10.     if(petition)
  11. ...

y luego dile si la llamada es sincrona o asincrona en OPEN:
Código javascript:
Ver original
  1. peticion.open("GET", datos, true); // si es asincrona
  2. peticion.open("GET", datos, false); // si es sincrona

recuerda que si la llamada es sincrona NO tendras el "onreadystatechange" pero si el "state"
__________________
http://zital.no-ip.org
____________________

Euskerie ahuen eta bijotzan