que ajax necesita el tiempo que le proporciona la demora provocada por un alert???
Buscador() esta definido??
quizá esté definido, pero tenga un error, de todas maneras como NO está explícita, vamos a inventar un poco
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript"> //<![CDATA[
var ajax;
function Buscador(){
var xmlHttp=null;
if (window.ActiveXObject)
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
else
if (window.XMLHttpRequest)
xmlHttp = new XMLHttpRequest();
return xmlHttp;
}
function mando_pcto(){
//alert("VERIFIQUE ADICIONALES");
ajax = Buscador();
var Resultados = document.getElementById('resultado_adicionales');
ajax.open("GET","hola.html");
ajax.onreadystatechange = function()
{
if (ajax.readyState == 4){
Resultados.innerHTML = ajax.responseText;
}
}
ajax.send(null)
}
//]]>
<div id="resultado_adicionales"></div>
hola.html
Funciona con ó sin alert()
Saludos