• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to turn off the javascript dialog box upon error.

New Here ,
Aug 05, 2015 Aug 05, 2015

Copy link to clipboard

Copied

Screenshot.png

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??

Views

160

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 06, 2015 Aug 06, 2015

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation