Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/08/2007, 17:08
tsunami
 
Fecha de Ingreso: diciembre-2003
Mensajes: 5
Antigüedad: 20 años, 5 meses
Puntos: 0
Error: No coinciden los tipos +IE AJAX

Holas saludos a toda la comunidad web

El problema es el siguiente
Código:
var xmlHttp

function creaitem(){
	xmlHttp=GetXmlHttpObject();
		if (xmlHttp==null){
	  		 alert("Tu navegador no soporta Ajax")	;
			return;
		}
		var url="hola.asp"
		xmlHttp.onreadystatechange=capturaitem();
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
}

function capturaitem(){
	
	if(xmlHttp.readyState==4){
	  	
	   document.getElementById("listado").innerHTML=xmlHttp.responseText;
	}
}
cuando llamo a la funcion creaitem desde

Código HTML:
<input type="button" name="agregar" id="agregar" value="Agregar" onClick="creaitem()"> 

El explorador Internet Explorer sobre el cual debe funcionar ( no saco nada con cambiara al Firefox) me arroja el error :

linea :10
caracter :3
NO COINCIDEN LOS TIPOS

siguiendo la info mencionada el error estaria aqui , linea 10 caracter 3

Código:
 xmlHttp.open("GET",url,true); 
el archivo hola.asp me devuelve el texto hola mundo....