home *** CD-ROM | disk | FTP | other *** search
/ .net 1998 August / netCD48.iso / mac / net / SoftCen / ie5 / IE5 / IE_S2.CAB / IE_2.CAB / SHDOCVW.DLL / HTML / ERROR.DLG < prev    next >
Text File  |  1998-06-03  |  4KB  |  153 lines

  1. <HTML id=dlgError STYLE="font-family: ms sans serif; font-size: 8pt;
  2. width: 42em; height: 27em">
  3. <HEAD>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <TITLE id=dialogTitle>
  6. Internet Explorer Script Error
  7. </TITLE>
  8. <SCRIPT LANGUAGE="JavaScript" defer>
  9. window.onerror = HandleError
  10. function HandleError(message, url, line)
  11. {
  12. var L_Dialog_ErrorMessage = "An error has occurred in this dialog.";
  13. var L_ErrorNumber_Text = "Error: ";
  14. var str = L_Dialog_ErrorMessage + "\n\n" 
  15.  + L_ErrorNumber_Text + line + "\n"
  16.  + message;
  17. alert (str);
  18. window.close();
  19. return true;
  20. }
  21. function loadBdy()
  22. {
  23. var L_ContinueScript_Message = "Do you want to continue running scripts on this page?";
  24. var objOptions = window.dialogArguments; 
  25. btnNo.onclick = new Function("btnOKClick()");
  26. btnYes.onclick = new Function("btnYesClick()");
  27. document.onkeypress = new Function("docKeypress()");
  28. spnLine.innerText  = objOptions.errorLine;
  29. spnCharacter.innerText = objOptions.errorCharacter;
  30. spnError.innerText  = objOptions.errorMessage;
  31. spnCode.innerText  = objOptions.errorCode;
  32. spnURL.innerText  = objOptions.errorUrl;
  33. if (!objOptions.errorDebug)
  34. {
  35.  divDebug.innerText = L_ContinueScript_Message;
  36. }
  37. btnYes.focus();
  38. function btnOKClick()
  39. {
  40. window.close();
  41. function btnYesClick()
  42. {
  43. window.returnValue = true;
  44. window.close();
  45. function docKeypress()
  46. {
  47. var L_AffirmativeKeyCodeLowerCase_Number = 121;
  48. var L_AffirmativeKeyCodeUpperCase_Number = 89;
  49. var L_NegativeKeyCodeLowerCase_Number  = 110;
  50. var L_NegativeKeyCodeUpperCase_Number  = 78;
  51. var intKeyCode = window.event.keyCode;
  52. if (intKeyCode == L_AffirmativeKeyCodeLowerCase_Number
  53.  || intKeyCode == L_AffirmativeKeyCodeUpperCase_Number)
  54. {
  55.  btnYesClick();
  56. }
  57. if (intKeyCode == L_NegativeKeyCodeLowerCase_Number
  58.  || intKeyCode == L_NegativeKeyCodeUpperCase_Number)
  59. {
  60.  btnOKClick();
  61. }
  62. </SCRIPT>
  63. </HEAD>
  64. <BODY ID=bdy onLoad="loadBdy()" style="font-family: 'ms sans serif';
  65. font-size: 8pt; background: threedface; color: windowtext;" topmargin=0>
  66. <CENTER id=ctrErrorMessage>
  67. <table id=tbl1 cellPadding=3 cellspacing=3 border=0 
  68. style="background: buttonface; font-family: ms sans serif; font-size: 8pt;">
  69. <TR>
  70. <TD id=tdImage>
  71. <img id=imgWarning src=warning.gif width=36 height=38 border=0 align=middle>
  72. </TD>
  73. <TD id=tdErrorMessage>
  74. An error has occurred in the script on this page.
  75. </TD>
  76. </TR>
  77. </TABLE>
  78. </CENTER>
  79. <DIV id=divTop style="background: threedface; font-family: ms sans serif; 
  80. font-size: 8pt; margin-left: 1.5em">
  81. <TABLE border=0 id=tbl2
  82. style="background: buttonface; font-family: ms sans serif; font-size: 8pt;
  83. margin-left: 1em;">
  84. <TBODY>
  85. <TR valign=top>
  86. <TD id=tdLine nowrap>
  87. Line:    
  88. </TD>
  89. <TD id=tdSpanLine>
  90. <SPAN id=spnLine></SPAN>
  91. </TD>
  92. </TR>
  93. <TR valign=top>
  94. <TD id=tdChar nowrap>
  95. Char:    
  96. </TD>
  97. <TD id=tdSpanCharacter>
  98. <SPAN id=spnCharacter></SPAN>
  99. </TD>
  100. </TR>
  101. <TR valign=top>
  102. <TD id=tdError nowrap>
  103. Error:    
  104. </TD>
  105. <TD id=tdSpanError>
  106. <DIV id=spnError style="background: threedface;
  107. font-family: ms sans serif; font-size: 8pt; width: 31em;"></DIV>
  108. </TD>
  109. </TR>
  110. <TR valign=top>
  111. <TD id=tdCode nowrap>
  112. Code:    
  113. </TD>
  114. <TD id=tdSpanCode>
  115. <SPAN id=spnCode></SPAN>
  116. </TD>
  117. </TR>
  118. <TR valign=top>
  119. <TD id=tdURL nowrap>
  120. URL:    
  121. </TD>
  122. <TD id=tdSpanURL>
  123. <SPAN id=spnURL></SPAN>
  124. </TD>
  125. </TR>
  126. </TBODY>
  127. </TABLE>
  128. </DIV>
  129. <DIV id=divDebug style="background: threedface; position: absolute;
  130. font-family: ms sans serif; font-size: 8pt; top: 18em;
  131. text-align: center;">
  132. Do you want to debug the current page?
  133. </DIV>
  134. <DIV id=divButttons style="background: buttonface; position: absolute;
  135. font-family: ms sans serif; font-size: 8pt; top: 20em">
  136. <CENTER id=ctrButtons>
  137. <BUTTON ID=btnYes style="font-family: ms sans serif; font-size: 8pt;
  138. width: 3.8em; height: 2.2em;" type=submit accesskey=y>
  139. <U id=undYes>Y</U>es
  140. </BUTTON>
  141. <BUTTON ID=btnNo style="font-family: ms sans serif; font-size: 8pt;
  142. width: 3.8em; height: 2.2em" type=reset accesskey=n>
  143. <U id=undNo>N</U>o
  144. </BUTTON>
  145. </CENTER>
  146. </DIV>
  147. </BODY>
  148. </HTML>
  149.