Como reparo eso?
Este es mi codigo
Cita:
<script type="text/javascript">
function AJAX(){ //funcion que sirve para conectarse
var ajaxs = ["Msxml2.XMLHTTP","Msxml2.XMLHTTP.4.0","Msxml2.XMLH TTP.5.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"];
var ajax = false;
for(var i=0 ; !ajax && i<ajaxs.length ; i++){
try{ ajax = new ActiveXObject(ajaxs[i]); }
catch(e) { ajax = false; }
}
if(!ajax && typeof XMLHttpRequest!='undefined') {
ajax = new XMLHttpRequest();
}
return ajax;
}
function devolver_datos(obj){
var ajax = AJAX();
if(!ajax){
alert("Imposible : Error AJAX");
return false;
}
document.getElementById('mostrar_detalle').innerHT ML = "<center><strong>Cargando... Espere por favor </center></strong>"
ajax.open("POST","devolver_detalle.asp",true);
ajax.onreadystatechange = function() {
if (ajax.readyState == 4) {
document.getElementById("mostrar_detalle").innerHT ML=ajax.responseText;
}
}
ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
ajax.send("codigo="+encodeURIComponent(obj.codigo. value)+"&periodo="+encodeURIComponent(obj.periodo. value) );
}
</script>
Un abrazo <script type="text/javascript">
function AJAX(){ //funcion que sirve para conectarse
var ajaxs = ["Msxml2.XMLHTTP","Msxml2.XMLHTTP.4.0","Msxml2.XMLH TTP.5.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"];
var ajax = false;
for(var i=0 ; !ajax && i<ajaxs.length ; i++){
try{ ajax = new ActiveXObject(ajaxs[i]); }
catch(e) { ajax = false; }
}
if(!ajax && typeof XMLHttpRequest!='undefined') {
ajax = new XMLHttpRequest();
}
return ajax;
}
function devolver_datos(obj){
var ajax = AJAX();
if(!ajax){
alert("Imposible : Error AJAX");
return false;
}
document.getElementById('mostrar_detalle').innerHT ML = "<center><strong>Cargando... Espere por favor </center></strong>"
ajax.open("POST","devolver_detalle.asp",true);
ajax.onreadystatechange = function() {
if (ajax.readyState == 4) {
document.getElementById("mostrar_detalle").innerHT ML=ajax.responseText;
}
}
ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
ajax.send("codigo="+encodeURIComponent(obj.codigo. value)+"&periodo="+encodeURIComponent(obj.periodo. value) );
}
</script>