home *** CD-ROM | disk | FTP | other *** search
/ Online Praxis 1998 March / Image.iso / CD-ROM / NETSCAPE / CCK / ASE.Z / asktty.js < prev    next >
Encoding:
Text File  |  1997-08-21  |  1.9 KB  |  80 lines

  1. <!--  to hide script contents from old browsers
  2.  
  3. //the file that includes this must also include settings.js!
  4.  
  5. function loadData()
  6. {
  7.     
  8.     var acctSetupFile        =    parent.parent.globals.getAcctSetupFilename(parent.parent.globals);
  9.     
  10.      var ttyFlagValue         =     "";
  11.      var asFormName            =    "askttyoption";
  12.  
  13.      modeSectionName            =    "Mode Selection"
  14.      newSectionName            =    "New Acct Mode"    
  15.      existingSectionName        =    "Existing Acct Mode"
  16.          
  17.     //set the checkbox flag
  18.     setCheckBox(asFormName, "asktty", parent.parent.globals.GetNameValuePair(acctSetupFile,existingSectionName,"AskTTY"));            
  19.  
  20.     if (parent.controls.generateControls)    parent.controls.generateControls();
  21.  
  22. }//function loadData()
  23.  
  24.  
  25. function checkData()
  26. {
  27.     return true;
  28. }
  29.  
  30.  
  31. function saveData()
  32. {
  33.     // save globals here
  34.  
  35.     var acctSetupFile         =    parent.parent.globals.getAcctSetupFilename(parent.parent.globals);
  36.     var modeSectionName        =     "Mode Selection";
  37.     var existingSectionName    =    "Existing Acct Mode";
  38.     var newSectionName        =    "New Acct Mode";
  39.     var    asFormName            =    "askttyoption";
  40.  
  41.     if (acctSetupFile != null && acctSetupFile != "")    {
  42.          parent.parent.globals.SetNameValuePair(acctSetupFile, existingSectionName, "AskTTY", getCheckBox(asFormName, "asktty"));    
  43.     }  // if (acctSetupFile != null && acctSetupFile != "")    
  44. }
  45.  
  46.  
  47.  //    For easy reference, this is the list of flags that ACCTSET.INI currently supports
  48.  //    ForceExisting
  49.  // ExistingSRFile
  50.  //    ForceNew
  51.  //    IntlMode
  52.  //    ShowNewPathInfo
  53.  //    AskSaveAcctInfo
  54.  //    SavePasswords
  55.  //    AskPersonalInfo
  56.  //    //AskSurvey        //defunct
  57.  //    //AskShareInfo    //defunct
  58.  //    AskBillingInfo
  59.  //    RegServer
  60.  //    CardTypes
  61.  //    ShowExistingPathInfo
  62.  //    RegPodURL
  63.  //    ShowIntro2
  64.  // ShowPhones
  65.  //    AskName
  66.  //    AskLogin
  67.  //    AskTTY
  68.  //    AskEmail
  69.  //    AskPhone
  70.  //    AskDNS
  71.  //    AskHosts
  72.  // AskPublishing
  73.  //    AskRegister
  74.  //    AskLDAP
  75.  //    AskIMAP
  76.  
  77.  
  78.  
  79. // end hiding contents from old browsers  -->
  80.