home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 August / 08_02.iso / software / cb5 / files / Bryce5TrialVersion.exe / data1.cab / HelpFiles / wwhelp / java / scripts / handlers.js
Encoding:
JavaScript  |  2001-07-16  |  920 b   |  36 lines

  1. function  WWHelpFrameSet_UpdateFavorite(ParamHREF)
  2. {
  3.   if (this.mPlatform != 2)  // Shorthand for Macintosh
  4.   {
  5.     if ((parent.navigation) &&
  6.         (parent.navigation.contents))
  7.     {
  8.       if (parent.navigation.contents.bWWHAppletLoaded)
  9.       {
  10.         parent.navigation.contents.document.applets[0].updateFavorites(ParamHREF);
  11.       }
  12.       else
  13.       {
  14.         // Applet not yet loaded, so we'll try again a bit later
  15.         //
  16.         setTimeout("parent.WWHelpFrameSet.fUpdateFavorite(\"" + ParamHREF + "\");", 250);
  17.       }
  18.     }
  19.   }
  20. }
  21.  
  22. function  WWHelpFrameSet_SyncTOC(ParamHREF)
  23. {
  24.   if (this.mPlatform != 2)  // Shorthand for Macintosh
  25.   {
  26.     if ((parent.navigation) &&
  27.         (parent.navigation.contents))
  28.     {
  29.       if (parent.navigation.contents.bWWHAppletLoaded)
  30.       {
  31.         parent.navigation.contents.document.applets[0].syncTOC(ParamHREF);
  32.       }
  33.     }
  34.   }
  35. }
  36.