Forum Moderators: open
here is part of the code
function nuevoAjax(){
//xmlhttp = false;
try
{
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(E) {
xmlhttp=false; }
}
if (!xmlhttp&&typeof XMLHttpRequest!='undefined'){
xmlhttp=new XMLHttpRequest();
// xmlhttp.overrideMimeType('text/xml');
}
return xmlhttp
}
var ajax=nuevoAjax();
ajax.open("POST", "ej2.php", true);
ajax.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded charset=ISO-8859-1');
//alert(cod);
ajax.send("v="+_cod);
ajax.onreadystatechange=function()
//alert(ajax.send());
{
if (ajax.readyState == 4)
{
var respuesta=ajax.responseXML;
//var respuesta2=ajax.responseText;
}
} i will apreciate a lot any help!
[edited by: DrDoc at 6:17 pm (utc) on Aug. 13, 2008]
[edit reason] Reduced sample code a lot. [/edit]