Ver Mensaje Individual
  #20 (permalink)  
Antiguo 14/04/2008, 12:12
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Problema al redireccionar a otra pagina, al finalizar llamada Ajax

A ver probemos esto:
Código:
function Rellenar_Bd( url ) {
	$('contenedor').style.height="650px";
	Element.show('contenedor');
	
	new Ajax.PeriodicalAjax(url, {
		method: 'get', 
		frequency: 0.7,
		decay: 1,
		onSuccess: function(res) {
                        var respuesta = parseInt(res.responseText);
			if( respuesta == 1 ) {
				this.stop();
                                setTimeout( function() {
                                          Element.hide('loading_tablas');
				          window.location = 'index.php?seccion=2&act=3';
                                }, 1000 );
			}
		}
	});
}
En tu archivo remoto (el que regresa 0 o 1) asegúrate que regrese el resultado como text/plain.

Saludos.