Page 1 of 1

[BEFORE POSTING] Useful information to catch the problem.

PostPosted: 23 Aug 2013 16:31
by Alexander Bulei
Hello,

Since V1.6.0.2682, we activate the Javascript Error Handler.

Image

It can be controlled only in the main thread using IWCGJQCommon.CGJSErrorHandler: Boolean (Default = True);

We understand that web apps shouldn't have any javascript errors,
By default, nobody can see them, only IE shows a icon at the bottom left.
Sometimes these errors are inoffensive and ignorable, but they also can lead to browser crash problems.

If you see a Dialog showing javascript errors, before the reporting/posting, please check this:

  1. Enable the JavaScript debug
    • For IW14
      delphi code
      ServerController.JavaScriptOptions.Debug = True
      ServerController.JavaScriptOptions.UseUncompressedFiles = True
    • For < IW14
      delphi code
      ServerController.JavaScriptDebug = True
  2. Set CGJSErrorHandler=False in ServerController.OnCreate.
  3. When the error is trigger, check the stack, to realize what is the source of the problem.

We also have in mind to implement a feature, that will allows to send the info to the server, generating an event.

Best Regards.

Re: [BEFORE POSTING] Useful information to catch the problem

PostPosted: 07 Feb 2020 06:42
by OliverM
Thanks for the information, very useful