Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/06/2009, 11:22
wondercloud
 
Fecha de Ingreso: abril-2009
Mensajes: 43
Antigüedad: 15 años
Puntos: 1
URGENTE!! Ajax con EXT

tengo la siguiente funcion:

Código:
    function validoCaptcha(){                            
		  			  
			Ext.Ajax.request({                   
                url: '/comprueba.php?catpcha=' +  document.getElementById('txtCaptcha').value,
                   success: function(response, opts) {				   		
					    return true;                 
                   },
                   failure: function(response, opts) {						
						return false;
                   }
            });  
                   
    }
Código:
function verificoDatos()
	{	
		
    var res = validoCaptcha();
    
	if(res != true)
	{
		alert(res);
		return false;
	}
    else
  {
        alert(res);
}

la pagina que hace la comprobacion es esta:

Código:
<?
    session_start();

    if ($_SESSION['tmptxt'] == $_GET["catpcha"])
		return true;	
	else	
		return false;
	
?>
RES me esta retornado undefined , alguien me puede ayudar