Send catched ajax exception back to server to perform logging? -
i have mvc3 application , i'm using elmah store errors in mysql database , send errors email. working perfectly, have javascript code in main layout:
$(document).ajaxerror(function (e, xhr, settings, exception) { //send server exception });
now, want catched exception (the ajax exception) , send server method stores exception elmah. possible? if isn't choice have?
this following article shows guidance on how log javascript errors elmah:
logging errors elmah in asp.net mvc 3 – part 5 – (javascript)
i know mechanism report error server specific mvc, should adaptable asp.net web forms if needed.
Comments
Post a Comment