![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/02/2012, 11:43
|
| | Fecha de Ingreso: febrero-2012 Ubicación: venezuela
Mensajes: 3
Antigüedad: 13 años Puntos: 0 | |
problema con juncion ajax no lee javascript hola estoy desarrollando un sistema el problema que tengo es cuando cargo un archivo en el div no me reconoce ningun evento ni funciones javascript espero q me ayuden ejemplo :
function ajaxFunction() {
var xmlHttp;
try {
xmlHttp=new XMLHttpRequest();
return xmlHttp;
} catch (e) {
try {
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
return xmlHttp;
} catch (e) {
try {
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
return xmlHttp;
} catch (e) {
alert("Tu navegador no soporta AJAX!");
return false;
}}}
}
function Enviar(_pagina,capa) {
var ajax;
ajax = ajaxFunction();
ajax.open("POST", _pagina, true);
ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
ajax.onreadystatechange = function() {
if (ajax.readyState==1){
document.getElementById(capa).innerHTML = " Aguarde por favor...";
}
if (ajax.readyState == 4) {
document.getElementById(capa).innerHTML=ajax.respo nseText;
}}
ajax.send(null);
}
hago referencia a la div
<a href="javascript:Enviar('comisionventas/index.php','DivCentral')" class="dock-item"><img src="../images/home.png" alt="home" /><span>Comision de Ventas</span></a>
y dentro del archivo 'comisionventas/index.php' tengo un php y varios eventos funciones an javascript el cual no me funcionan si tienen respuesta se lo agradezco |