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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -