Código PHP:
function objetoAjax(){
var 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();
}
return xmlhttp;
}
function cargar(e,url){
var contenedor;
contenedor = document.getElementById(e);
ajax=objetoAjax();
ajax.open("GET", url);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
contenedor.innerHTML = ajax.responseText
}
}
ajax.send(null)
}
Código PHP:
<script>
function validar() {
cargar('contenedor2','Agregar2.php?vProd='+document.form.sltc_nomproducto.value);
}
</script>
Código PHP:
$producto=$_REQUEST["vProd"];
..........


header("Cache-Control: no-store, no-cache, must-revalidate");
pero tampoco funciona alguien podria ayudarme... gracias de antemano
