Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/11/2011, 13:47
sander
 
Fecha de Ingreso: julio-2003
Ubicación: Cochabamba Bolivia
Mensajes: 300
Antigüedad: 20 años, 9 meses
Puntos: 14
Respuesta: cambiar orden segun response

Hola.

Puedes hacerlo asi.

Tu codigo javacript quedaria asi:

Código Javascript:
Ver original
  1. <script type="text/javascript">
  2. *
  3. $("#captchaform").submit(function(event){
  4. * * //alert("hola");
  5. event.preventDefault();
  6. * *
  7. * * $.ajax({
  8. * * * * type: "post",
  9. * * * * url: "compruebaCaptcha.php",
  10. * * * * data: $("#captchaform").serialize(),
  11. * * * * success: function(data){
  12.  
  13.            if( data == 'captcha valido' )
  14.            {
  15.                $( '#verificaCaptcha' ).html( 'Captcha correcto!!' );
  16.                $( '#verificaCaptcha' ).show( 'slow' );
  17.                $( '#idDeTuFormulario' ).show( 'slow' );
  18.            }
  19. * * * * * *
  20. * * * * }
  21. * * });
  22. });
  23. *
  24. </script>

y en tu html tendria que agregar algo asi:

Código HTML:
Ver original
  1. <div id="idDeTuFormulario" style="display: none;">
  2. aqui tu formulario
  3. </form>
  4. </div>

Eso es todo.

Saludos.
__________________
:policia: Uno para todos y todos para uno.