Home Unanswered Active Tags New Question

Logging All DayPilot Errors - js & .net

Hi,

I'm working with DP ver 5.4.1722 DEMO. I've added ELMAH (http://code.google.com/p/elmah/) to my project as a centralized error log and notificationtool, butI'm struggling with javascript errors.

Can you recommend a way to pass javascript errors to a server-side routine from your CallBackErrorJavascript method? ELMAH provides a server-side mechanism to catch and report onAJAX errors.

Asked by J Nigon 3 years ago.
Replies

I'm not sure how successful coulbe sending JavaScript errors to the server side be. It would be possible by firing another AJAX request (maybe using raw XmlHTTPRequest interface) but I'm not sure if it's not an overkill. The routine itself could generate errors so you have to take it into account.

The CallBackErrorJavascript receives an error from the WebForm_DoCallback (defined by ASP.NET) and it only gets errors from the AJAX calls. ASP.NET is not very smart here and it only throws these errors when there is a server-side exception generated during the AJAX callback. I guess it should be possible to catch these exceptions using ELMAH on the server side.

Comment posted by Dan Letecky 3 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java