home *** CD-ROM | disk | FTP | other *** search
/ Mundo do CD-ROM 119 / cdrom119.iso / essenc / ie6sp1 / IEMIL_3.CAB / SHDOCLC.DLL / HTML / IEERROR.DLG < prev    next >
Encoding:
Text File  |  2002-09-04  |  9.2 KB  |  370 lines

  1. <HTML id=dlgError STYLE="font-family:ms sans serif; font-size:8pt; width:41.0025em; height:13.7em;">
  2. <HEAD>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  4. <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
  5. <TITLE id=dialogTitle>
  6. Internet Explorer
  7. </TITLE>
  8. <style type="text/css">
  9. p,td,input,button { font:8pt MS Shell Dlg; cursor:default}
  10. body { font:8pt MS Shell Dlg; color: windowtext;
  11. background:menu;}
  12. </style>
  13. <SCRIPT LANGUAGE="JavaScript" defer>
  14. window.onerror = HandleError
  15. document.ondragstart = NoDragging
  16. function NoDragging()
  17. {
  18. window.event.returnValue = false;
  19. }
  20. var g_errList;
  21. var g_detailsPaneOpen;
  22. function HandleError(message, url, line)
  23. {
  24. var L_Dialog_ErrorMessage = "Erro na caixa de dißlogo.";
  25. var L_ErrorNumber_Text = "Erro: ";
  26. var str = L_Dialog_ErrorMessage + "\n\n"
  27. + L_ErrorNumber_Text + line + "\n"
  28. + message;
  29. alert (str);
  30. window.close();
  31. return true;
  32. }
  33. function updateTabIndices()
  34. {
  35. if (g_detailsPaneOpen)
  36. {
  37. var nextIndex = 3;
  38. if (!btnPrevErr.disabled)
  39. {
  40. btnPrevErr.tabindex = nextIndex++;
  41. }
  42. if (!btnNextErr.disabled)
  43. {
  44. btnNextErr.tabindex = nextIndex++;
  45. }
  46. chkAlwaysShowErrs.tabindex = nextIndex;
  47. }
  48. else
  49. {
  50. btnPrevErr.tabindex = -1;
  51. btnNextErr.tabindex = -1;
  52. chkAlwaysShowErrs.tabindex = 3;
  53. }
  54. }
  55. function loadBdy()
  56. {
  57. g_errList = window.dialogArguments;
  58. chkAlwaysShowErrs.checked = g_errList.getPerErrorDisplay();
  59. g_errList.setPerErrorDisplay(chkAlwaysShowErrs.checked);
  60. chkAlwaysShowErrs.disabled = g_errList.getAlwaysShowLockState();
  61. g_detailsPaneOpen = g_errList.getDetailsPaneOpen();
  62. assureControlState();
  63. btnOK.onclick = new Function("btnOKClick()");
  64. btnOK.onkeydown = new Function("SwitchFocus()");
  65. btnDetails.onclick = new Function("btnDetailsClick()");
  66. btnDetails.onkeydown = new Function("SwitchFocus()");
  67. btnNextErr.onclick = new Function("btnNextErrClick()");
  68. btnNextErr.onkeydown = new Function("SwitchFocus()");
  69. btnPrevErr.onclick = new Function("btnPrevErrClick()");
  70. btnPrevErr.onkeydown = new Function("SwitchFocus()");
  71. updateErrorInfo();
  72. if (!g_errList.canRetreatError())
  73. {
  74. btnPrevErr.disabled = true;
  75. }
  76. if (!g_errList.canAdvanceError())
  77. {
  78. btnNextErr.disabled = true;
  79. }
  80. btnOK.focus();
  81. }
  82. function updateErrorInfo()
  83. {
  84. spnLine.innerText = g_errList.getErrorLine();
  85. spnCharacter.innerText = g_errList.getErrorChar();
  86. spnCode.innerText = g_errList.getErrorCode();
  87. divError.innerText = g_errList.getErrorMsg();
  88. divURL.innerText = g_errList.getErrorUrl();
  89. }
  90. function SwitchFocus()
  91. {
  92. var HTML_KEY_ARROWLEFT = 37;
  93. var HTML_KEY_ARROWUP = 38;
  94. var HTML_KEY_ARROWRIGHT = 39;
  95. var HTML_KEY_ARROWDOWN = 40;
  96. var iCode = event.keyCode;
  97. var strSourceID = event.srcElement.id;
  98. var fTabForward;
  99. if (iCode < HTML_KEY_ARROWLEFT || iCode > HTML_KEY_ARROWDOWN)
  100. {
  101. return;
  102. }
  103. var fTabForward = iCode == HTML_KEY_ARROWRIGHT ||
  104. iCode == HTML_KEY_ARROWDOWN;
  105. if (g_detailsPaneOpen)
  106. {
  107. if (fTabForward)
  108. {
  109. if (strSourceID == "btnPrevErr")
  110. {
  111. if (!btnNextErr.disabled)
  112. {
  113. btnNextErr.focus();
  114. }
  115. }
  116. else if (strSourceID == "btnOK")
  117. {
  118. btnDetails.focus();
  119. }
  120. else if (strSourceID == "chkAlwaysShowErrs")
  121. {
  122. btnOK.focus();
  123. }
  124. }
  125. else
  126. {
  127. if (strSourceID == "btnNextErr")
  128. {
  129. if (!btnPrevErr.disabled)
  130. {
  131. btnPrevErr.focus();
  132. }
  133. }
  134. else if (strSourceID == "btnDetails")
  135. {
  136. btnOK.focus();
  137. }
  138. else if (strSourceID == "btnOK")
  139. {
  140. chkAlwaysShowErrs.focus();
  141. }
  142. }
  143. }
  144. }
  145. function btnOKClick()
  146. {
  147. g_errList.setPerErrorDisplay(chkAlwaysShowErrs.checked);
  148. g_errList.setDetailsPaneOpen(g_detailsPaneOpen);
  149. window.close();
  150. }
  151. function assureControlState()
  152. {
  153. var L_DetailsExpand_Text = "Mostrar <u>d</u>etalhes >>";
  154. var L_DetailsCollapse_Text = "Ocultar <u>d</u>etalhes <<";
  155. if (g_detailsPaneOpen)
  156. {
  157. btnDetails.innerHTML = L_DetailsCollapse_Text;
  158. window.dialogHeight = 27.2;
  159. divDetails.style.display = "";
  160. divButtons2.style.display = "";
  161. trHR.style.display = "";
  162. }
  163. else
  164. {
  165. btnDetails.innerHTML = L_DetailsExpand_Text;
  166. divDetails.style.display = "none";
  167. divButtons2.style.display = "none";
  168. trHR.style.display = "none";
  169. window.dialogHeight = 13.7;
  170. }
  171. }
  172. function btnDetailsClick()
  173. {
  174. g_detailsPaneOpen = !g_detailsPaneOpen;
  175. assureControlState();
  176. if (g_detailsPaneOpen)
  177. {
  178. if (!btnNextErr.disabled)
  179. {
  180. btnNextErr.focus();
  181. }
  182. else if (!btnPrevErr.disabled)
  183. {
  184. btnPrevErr.focus();
  185. }
  186. else
  187. {
  188. btnOK.focus();
  189. }
  190. }
  191. else
  192. {
  193. btnDetails.focus();
  194. }
  195. updateTabIndices();
  196. }
  197. function btnNextErrClick()
  198. {
  199. g_errList.advanceError();
  200. updateErrorInfo();
  201. if (btnPrevErr.disabled)
  202. {
  203. btnPrevErr.disabled = false;
  204. }
  205. if (!g_errList.canAdvanceError())
  206. {
  207. btnNextErr.disabled = true;
  208. btnPrevErr.focus();
  209. }
  210. updateTabIndices();
  211. }
  212. function btnPrevErrClick()
  213. {
  214. g_errList.retreatError();
  215. updateErrorInfo();
  216. if (btnNextErr.disabled)
  217. {
  218. btnNextErr.disabled = false;
  219. }
  220. if (!g_errList.canRetreatError())
  221. {
  222. btnPrevErr.disabled = true;
  223. btnNextErr.focus();
  224. }
  225. updateTabIndices();
  226. }
  227. function BodyOnKeyPress(nCode)
  228. {
  229. if (nCode == 27)
  230. {
  231. window.close();
  232. return;
  233. }
  234. }
  235. </SCRIPT>
  236. </HEAD>
  237. <BODY ID=bdy style="background: threedface" onLoad=loadBdy() onkeydown=BodyOnKeyPress(event.keyCode) onkeypress=BodyOnKeyPress(event.keyCode) topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>
  238. <table id=tblMain tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse; width:26.1em;">
  239. <TR>
  240. <!-- Icon image -->
  241. <TD id=tdIcon valign=top style="padding-left:0.9625em; padding-top:0.9295em; padding-right:0.385em;">
  242. <img id=imgIcon src=warning.gif>
  243. </TD>
  244. <TD style="padding-top:0.5577em;">
  245. <!-- Inner table start -->
  246. <table tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse">
  247. <!-- Error message dialog -->
  248. <TR>
  249. <TD id=tdMsg style="padding-left:0.48125em; padding-right:0em">
  250. Problemas com esta pßgina da Web podem impedir que ela seja
  251. exibida ou funcione corretamente. Para exibir esta mensagem no
  252. futuro, clique duas vezes
  253. no φcone de aviso exibido na barra de status.
  254. </TD>
  255. </TR>
  256. <!-- Checkbox -->
  257. <TR>
  258. <TD style="padding-top:0.46475em;">
  259. <input id=chkAlwaysShowErrs tabindex=5 accesskey=s type=checkbox>
  260. <label for=chkAlwaysShowErrs id=labelChk>
  261. <u>S</u>empre exibir esta mensagem quando uma pßgina contiver erros.
  262. </label>
  263. </TD>
  264. </TR>
  265. <!-- OK button -->
  266. <TR>
  267. <TD id=Buttons align=right style="padding-top:1.20835em;">
  268. <table id=tblMain tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse;">
  269. <tr>
  270. <td style="padding-right:0.385em; padding-left:0em">
  271. <button id=btnOK tabindex=1
  272. style="width:8em; height:2.2em;"
  273. type=submit>
  274. OK
  275. </button>
  276. </td>
  277. <td>
  278. <button id=btnDetails tabindex=2
  279. style="width:8em; height:2.2em;"
  280. accesskey=D>
  281. Mostrar <u>d</u>etalhes >>
  282. </button>
  283. </td>
  284. </tr>
  285. </table>
  286. </TD>
  287. </TR>
  288. </TABLE>
  289. <!-- Inner table end -->
  290. </TD>
  291. </TR>
  292. <!-- HR -->
  293. <TR id=trHR style="display:none;">
  294. <TD colspan=2 style="padding-left:1.155em; padding-top:0.09295em; padding-right:0.28875em;">
  295. <hr>
  296. </TD>
  297. </TR>
  298. </TABLE>
  299. <DIV id=divDetails tabindex=-1 style="border:inset; overflow:auto; position:absolute; background:threedface; font-family:ms sans serif;
  300. font-size:8pt; top:12.4553em; width:37.9225em; height:8.1796em; margin-left:1.155em; margin-right: 0em; display:none">
  301. <TABLE id=tbl2 tabindex=-1 cellspacing=0 border=0 style="border-collapse:collapse; background:buttonface; font-family:ms sans serif;
  302. font-size:8pt;">
  303. <TBODY>
  304. <TR valign=top>
  305. <TD id=tdLine nowrap style="padding-top:0.3718em; padding-left:0.48125em; padding-right:0em">
  306. Linha:
  307. </TD>
  308. <TD id=tdSpanLine style="padding-top:0.46475em;">
  309. <SPAN id=spnLine></SPAN>
  310. </TD>
  311. </TR>
  312. <TR valign=top>
  313. <TD id=tdChar nowrap style="padding-left:0.48125em; padding-right:0em">
  314. Caractere:
  315. </TD>
  316. <TD id=tdSpanCharacter>
  317. <SPAN id=spnCharacter></SPAN>
  318. </TD>
  319. </TR>
  320. <TR valign=top>
  321. <TD id=tdError nowrap style="padding-left:0.48125em; padding-right:0em">
  322. Erro:
  323. </TD>
  324. <TD id=tdSpanError>
  325. <DIV id=divError tabindex=-1 style="background: threedface;
  326. font-family: ms sans serif; font-size:8pt; width:32.1475em;"></DIV>
  327. </TD>
  328. </TR>
  329. <TR valign=top>
  330. <TD id=tdCode nowrap style="padding-left:0.48125em; padding-right:0em">
  331. C≤digo:
  332. </TD>
  333. <TD id=tdSpanCode>
  334. <SPAN id=spnCode></SPAN>
  335. </TD>
  336. </TR>
  337. <TR valign=top>
  338. <TD id=tdURL nowrap style="padding-left:0.48125em; padding-right:0em; padding-bottom:0.09295em;">
  339. URL:
  340. </TD>
  341. <TD id=tdSpanURL>
  342. <DIV id=divURL tabindex=-1 style="background:threedface; font-family:ms sans serif; font-size:8pt; width:32.1475em;"></DIV>
  343. </TEXTAREA>
  344. </TD>
  345. </TR>
  346. </TBODY>
  347. </TABLE>
  348. </DIV>
  349. <DIV id=divButtons2 tabindex=-1 align=right style="background:buttonface; position:absolute; font-family:ms sans serif; font-size:8pt; top:21.1926em;
  350. width:38.01875em; margin-left:1.155em; margin-right:0em; display:none">
  351. <table id=tblMain tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse;">
  352. <tr>
  353. <td style="padding-right:0.385em; padding-left:0em">
  354. <button id=btnPrevErr tabindex=3 type=reset accesskey=a
  355. style="font-family: ms sans serif; font-size:8pt; width:8em; height:2.2em;">
  356. <u>A</u>nterior
  357. </button>
  358. </td>
  359. <td>
  360. <button id=btnNextErr tabindex=4 type=reset accesskey=p
  361. style="font-family: ms sans serif; font-size:8pt; width:8em; height:2.2em;">
  362. <u>P</u>r≤ximo
  363. </button>
  364. </td>
  365. </tr>
  366. </table>
  367. </DIV>
  368. </BODY>
  369. </HTML>
  370.