puede ser que llames a la funcion 'ajax' sin el new delante por ejemplo:
MAL
Código javascript
:
Ver originalfunction xmlhttp = function()
{
var a;try{a = new XMLHttpRequest();}
catch(e){try{a = new ActiveXObject('Msxml2.XMLHTTP');}
catch(e){try{a = new ActiveXObject('Microsoft.XMLHTTP');}
catch(e){alert("Your browser doesn't support ajax");return false;}
}}return a;
}
var a = xmlhttp();
BIEN
Código javascript
:
Ver originalfunction xmlhttp = function()
{
var a;try{a = new XMLHttpRequest();}
catch(e){try{a = new ActiveXObject('Msxml2.XMLHTTP');}
catch(e){try{a = new ActiveXObject('Microsoft.XMLHTTP');}
catch(e){alert("Your browser doesn't support ajax");return false;}
}}return a;
}
var a = new xmlhttp();