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