home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / 05_02.iso / software / nis / files / NIS / NIS.MSI / IntroWiz.exe / HTML / IW-CONFID_EXAMPLES.JS < prev    next >
Encoding:
JavaScript  |  2001-12-01  |  1.6 KB  |  60 lines

  1. ////////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // PRODUCT: Norton Internet Security/Symantec Desktop Firewall
  4. //
  5. // NAME:    iw-confid_examples.js (Javascript file for iw-confid_examples.HTM)
  6. //
  7. // Copyright (c) 2001 by Symantec Corporation. All rights reserved.
  8. //
  9. ////////////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. function OnLoad()
  12. {
  13.     CloseB.focus();
  14.     Back0.disabled = true;
  15.     Back1.disabled = true;
  16.     Back2.disabled = true;
  17.  
  18.     ListA.SetColumnCount(3);
  19.     ListA.SetColumnWidth(0, "34%");
  20.     ListA.SetColumnWidth(1, "34%");
  21.     ListA.SetColumnWidth(2, "32%");    
  22.     
  23.     var pRow = null;        
  24.     pRow = ListA.InsertRow(-1);
  25.             
  26.     var pRow = null;        
  27.     pRow = ListA.InsertRow(-1);
  28.     ListA.SetCellTextPtr(pRow, 0, "Pete's Bank Account");
  29.     ListA.SetCellTextPtr(pRow, 1, "Bank Account");        
  30.     ListA.SetCellTextPtr(pRow, 2, "07838");
  31.     pRow = ListA.InsertRow(-1);
  32.     ListA.SetCellTextPtr(pRow, 0, "John's E-mail Adress");
  33.     ListA.SetCellTextPtr(pRow, 1, "E-mail");        
  34.     ListA.SetCellTextPtr(pRow, 2, "jdoe32@symantec.com");
  35.     pRow = ListA.InsertRow(-1);
  36.     ListA.SetCellTextPtr(pRow, 0, "Pete's Platinum Card");
  37.     ListA.SetCellTextPtr(pRow, 1, "Credit Card");        
  38.     ListA.SetCellTextPtr(pRow, 2, "54232");
  39.  
  40. }
  41.  
  42. function ClickClose()
  43. {
  44.     window.navigate("res://closeme.xyz");    
  45. }
  46.  
  47.  
  48. function OnKeyDownHandler()
  49. {
  50.     // Last Control Tab over to the <back, next, close> button.
  51.     var VK_ESCAPE = 27;
  52.  
  53.     if (window.event.keyCode == VK_ESCAPE)
  54.     {
  55.         // Escape key.. We want to exit out of the wizard..
  56.         window.navigate("res://closeme.xyz");
  57.  
  58.     }
  59.     
  60. }