![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/01/2009, 10:46
|
![Avatar de MaBoRaK](http://static.forosdelweb.com/customavatars/avatar33632_10.gif) | | | Fecha de Ingreso: abril-2003 Ubicación: La Paz - Bolivia
Mensajes: 2.003
Antigüedad: 21 años, 1 mes Puntos: 35 | |
Respuesta: Corrección Javascript en AJAX loading..............
Osea que debe ser así
function lanzamos_funcion() { // put data returned by requested URL to selected DIV
if (xmlhttp.readyState == 4) if (xmlhttp.status == 200)
var scs=xmlhttp.responseText.extractScript(); //capturamos los scripts
ajaxdestination.innerHTML=xmlhttp.responseText.stripScript();
scs.evalScript(); //ahora si, comenzamos a interpretar todo
document.getElementById(ajaxdestination).innerHTML =xmlhttp.responseText;
}
connection closed. |