javascript - prototype stop and continue event after AJAX call -


i have form. execute ajax call on form submit, , after execution continue form submiting.

here code example:

$('myform').observe('submit', function(e) {     e.stop();     new ajax.request('/myurl', {         method:'get',         oncomplete: function(transport) {             //here continue form submitting         },     }); }); 


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -