asp.net mvc - Can we stop sending ajax for a while and continue? -


i need stop sending ajax request of ajax.actionlink while on onbegin , continue request if confirm alert true. in below code abort ajax request, there way resend using own methods.

beforedelete: function (x, y) {     x.abort();     bootbox.confirm("are sure want delete this?", function (result) {         if (result) {            //process again         }     }); } 

edit: have achieved it, guruprasad.

var prevdel = true; function beforedelete(x, y) {     if (prevdel) {         x.abort();         bootbox.confirm("are sure want delete this?", function (result) {             if (result) {                 prevdel = false;                 $.ajax(y);             } else {                 prevdel = true;             }         });     } else {         prevdel = true;     } } 

ok... break code:

bootbox.confirm("are sure want delete this?", function (result) {         if (result) {            //send ajax request here         }     }); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -