You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add something like the following to qcubed.js:
window.onerror = function(m,u,l){
jQuery.post("ajax/js_error_log.php",
{ msg: m,
url: u,
line: l,
window: window.location.href });
return true};
Something that would then post the error to PHP for logging and notification. Widgets that rely on javascript will silently fail on a javascript error. They then stop sending data to the server, and you get unexpected results, and it can be a while before realizing that the javascript has failed.
This apparently will not catch syntax errors, but will catch runtime errors.
The text was updated successfully, but these errors were encountered:
We should add something like the following to qcubed.js:
window.onerror = function(m,u,l){
jQuery.post("ajax/js_error_log.php",
{ msg: m,
url: u,
line: l,
window: window.location.href });
return true};
Something that would then post the error to PHP for logging and notification. Widgets that rely on javascript will silently fail on a javascript error. They then stop sending data to the server, and you get unexpected results, and it can be a while before realizing that the javascript has failed.
This apparently will not catch syntax errors, but will catch runtime errors.
The text was updated successfully, but these errors were encountered: