How To Suppress JavaScript Errors for Inquisiq R3/R4/R5 On-Premise Systems
The instructions below will suppress unwanted JavaScript pop-up messages for on-premise systems on the legacy Inquisiq R3/R4/R5 LMS product.
The instructions below will suppress unwanted JavaScript pop-up messages for on-premise systems on the legacy Inquisiq R3/R4/R5 LMS product. These JavaScript errors appear for end users when launching online lessons.
In order to suppress these messages, edit out the following code blocks in the launch/lesson.asp file:
-
// alert on JS errors -
window.onerror =function(){ -
alert(window.opener.Translator.LESSON_DATA_ERROR); -
returntrue; -
}
and
-
//set error behavior within lesson content -
setTimeout("window.frames[0].onerror = function(){alert(window.opener.Translator.LESSON_ERROR); return true;}", 1000);