Project

General

Profile

disable javascript errors

Added by Mohammed Rashad over 14 years ago

How to disable errors/warnings when executing javascript code using

WApplication::instance()->doJavaScript(code);

I mean errors like this

Wt internal error: TypeError: layer.selectedFeatures is undefined, code: undefined, description: undefined


Replies (1)

RE: disable javascript errors - Added by Wim Dumon over 14 years ago

Wt internal errors really should not happen. They must be solved rather than be ignored.

If you want to debug this behaviour, set the debug option wt_config.xml to true. The exception will then not be caught, and the JS debugger will break where the error happens.

BR,

Wim.

    (1-1/1)