Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/04/2014, 21:41
Avatar de Patriarka
Patriarka
 
Fecha de Ingreso: enero-2011
Ubicación: Moreno, Buenos Aires, Argentina
Mensajes: 2.851
Antigüedad: 13 años, 3 meses
Puntos: 288
Respuesta: Duda Sobre Ajax y PHP

Hola Amiguito,
es muy facil con Jquery.

mira este ejemplo, no hace falta que te explique nada:

Código PHP:
Ver original
  1. // Assign handlers immediately after making the request,
  2. // and remember the jqXHR object for this request
  3. var jqxhr = $.ajax( "example.php" )
  4. .done(function() {
  5. alert( "success" );
  6. })
  7. .fail(function() {
  8. alert( "error" );
  9. })
  10. .always(function() {
  11. alert( "complete" );
  12. });
  13. // Perform other work here ...
  14. // Set another completion function for the request above
  15. jqxhr.always(function() {
  16. alert( "second complete" );
  17. });

esta en la pagina oficial https://api.jquery.com/jQuery.ajax/