Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/08/2009, 11:38
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
Respuesta: recuperar variable php

Puedes desde PHP enviar un "ok", o algo similar y ya en Javascript "comparas" que sea el ok y haces el redirect, por ejemplo:
Código Javascript:
Ver original
  1. ajax.onreadystatechange=function() {
  2.      if (ajax.readyState==4){
  3.           if (ajax.responseText == 'ok') {
  4.                   window.location = 'usuariosalta.php';
  5.           }
  6.       }
  7. }

Saludos.