Keywords:
Legacy, JavaScript, Suppress, JS, Content Pop-Up |
The instructions below will suppress unwanted JavaScript pop-up messages for on-premise portals on the Legacy r4/r5 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);
-
true;
-
}
and
-
//set error behavior within lesson content
-
setTimeout("window.frames[0].onerror = function(){alert(window.opener.Translator.LESSON_ERROR); return true;}", 1000);
Comments
0 comments
Please sign in to leave a comment.