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.