home *** CD-ROM | disk | FTP | other *** search
/ Online Praxis 1998 March / Image.iso / CD-ROM / NETSCAPE / CCK / ASE.Z / askserv.js < prev    next >
Encoding:
Text File  |  1997-08-21  |  1.8 KB  |  61 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 flagValue             =     "";
  11.      var asFormName            =    "askimapldapoptions";
  12.  
  13.      //modeSectionName            =    "Mode Selection"
  14.      //newSectionName            =    "New Acct Mode"    
  15.      existingSectionName        =    "Existing Acct Mode"
  16.          
  17.     //set the checkbox flags
  18.     flagValue = yesNoToNoYes( parent.parent.globals.GetNameValuePair(acctSetupFile,existingSectionName,"AskIMAP"));
  19.     setCheckBox(asFormName, "askimap", flagValue);
  20.     
  21.     //got rid of this
  22.     //flagValue = yesNoToNoYes( parent.parent.globals.GetNameValuePair(acctSetupFile,existingSectionName,"AskLDAP"));    
  23.     //setCheckBox(asFormName, "askldap", flagValue);
  24.         
  25.     if (parent.controls.generateControls)    parent.controls.generateControls();
  26. }//function loadData()
  27.  
  28.  
  29. function checkData()
  30. {
  31.     return true;
  32. }
  33.  
  34.  
  35. function saveData()
  36. {
  37.     // save globals here
  38.  
  39.     var acctSetupFile         =    parent.parent.globals.getAcctSetupFilename(parent.parent.globals);
  40.     var modeSectionName        =     "Mode Selection";
  41.     var existingSectionName    =    "Existing Acct Mode";
  42.     var newSectionName        =    "New Acct Mode";
  43.     var    asFormName            =    "askimapldapoptions";
  44.     var    flagValue            =    "";
  45.  
  46.     if (acctSetupFile != null && acctSetupFile != "")    {
  47.  
  48.             flagValue = yesNoToNoYes(getCheckBox(asFormName, "askimap"));
  49.          parent.parent.globals.SetNameValuePair(acctSetupFile, existingSectionName, "AskIMAP", flagValue);    
  50.  
  51.             //no longer applicable
  52.             //flagValue = yesNoToNoYes(getCheckBox(asFormName, "askldap"));
  53.             //parent.parent.globals.SetNameValuePair(acctSetupFile, existingSectionName, "AskLDAP", flagValue);    
  54.  
  55.     }  // if (acctSetupFile != null && acctSetupFile != "")    
  56. }
  57.  
  58.  
  59.  
  60. // end hiding contents from old browsers  -->
  61.