ajax - JavaScript: Detect form submission completion -


i have form in iframe , submit it. how can tell when submission completes? i'm using jquery submit form don't think there's callback:

$("#myform").submit(); // how attach event submission complete?

submission of form redirect next page.

but can try ajax function

http://api.jquery.com/jquery.ajax/

adding callback easy as

 $.ajax({    url: "page.php",    success: function() {       dowhateveryouwant();    }  }); 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -