Skip to main content
len-anderson
Participant
August 5, 2015
Question

How to turn off the javascript dialog box upon error.

  • August 5, 2015
  • 1 reply
  • 248 views

I have some Ajax stuff that will just error from time to time due to database timeouts, etc. I need to turn off the dialog that comes up that says there was an error and to turn on debugging. It just freaks end users out... It would be nice if such errors were just reported in firebug with no "Click OK" popup dialog!  Maybe a try/catch is in order??

    This topic has been closed for replies.

    1 reply

    Inspiring
    August 6, 2015

    This depends on the code you are using.

    The alert boxes will be done by javascript alert(). All you have to do is go remove that line..... Change it to a console.log() if you want to output to the console instead.

    If you are doing ajax calls then you probably have an alert() inside the function that gives this alert when a certain case is matched.