home *** CD-ROM | disk | FTP | other *** search
/ Enter 2001 April / EnterCD4.iso / Internet / Groove / GrooveSetup.exe / Disk1 / data1.cab / GrooveHelp / stub.js < prev    next >
Encoding:
Text File  |  2001-01-31  |  4.4 KB  |  141 lines

  1. function GetLocalURL(){
  2.     var theURL;
  3.  
  4.     theURL = this.location;
  5.  
  6.     return theURL;
  7. }
  8.     
  9. // This method returns everything after the specified 
  10. // parameter in a URL string.
  11. function DeriveGRVUrl(inURL, inString){
  12.     var    thePath,
  13.         theLength;
  14.  
  15.     inString = String(inString);
  16.     inURL = String(inURL);
  17.         
  18.     
  19.     theIndex = inURL.indexOf( inString );
  20.     theLength = inURL.lastIndexOf( "/" );
  21.         
  22.     thePath = inURL.substring( theIndex, theLength );
  23.     
  24.     return thePath;
  25. }
  26.     
  27. function DeriveGRVFileName( inURL ){
  28.  
  29.     var    theFile,
  30.         theLength;
  31.  
  32.     inURL = String(inURL);
  33.         
  34.     theSlashIndex = inURL.lastIndexOf( "/" );
  35.     theDotIndex   = inURL.lastIndexOf( "." );
  36.     theLength = inURL.length;
  37.         
  38.     theFile = inURL.substring( theSlashIndex + 1 , theDotIndex );
  39.         
  40.     theFile = "/" + theFile + ".grv";
  41.     
  42.     return theFile;    
  43. }
  44.     
  45.     
  46. // The main 
  47. function Main(){
  48.     var    path,
  49.         myURL;
  50.         
  51.     var SearchString     = "/Help/"    
  52.     var Server        = "http://components.groove.net/Groove/Components"
  53.         
  54.     myURL = GetLocalURL();
  55.     
  56.     path = "/Injectables/Help";
  57.     file = DeriveGRVFileName (myURL);
  58.         
  59.     document.write("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; url=" + Server + path + file + "\">\n");
  60. }
  61.  
  62. document.write('<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">');
  63.  
  64. document.write('<html>');
  65.  
  66. document.write('<head>');
  67.  
  68. document.write('<title>Files</title>');
  69.  
  70. <!--(Meta)==========================================================-->
  71.  
  72. document.write('<meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">');
  73. document.write('<meta name=generator-major-version content=0.1>');
  74. document.write('<meta name=generator-minor-version content=1>');
  75. document.write('<meta name=filetype content=kadov>');
  76. document.write('<meta name=filetype-version content=1>');
  77. document.write('<meta name=page-count content=1>');
  78. document.write('<meta name=layout-height content=477>');
  79. document.write('<meta name=layout-width content=732>');
  80. document.write('<meta name=date content="09 14, 2000 4:12:54 PM">');
  81.  
  82. Main();
  83.  
  84. function reDo() {
  85.   if (innerWidth != origWidth || innerHeight != origHeight)
  86.      location.reload();
  87. }
  88. if ((parseInt(navigator.appVersion) >= 4) && (navigator.appName == "Netscape")) {
  89.     origWidth = innerWidth;
  90.     origHeight = innerHeight;
  91.     onresize = reDo;
  92. }
  93.  
  94. document.write('<style>');
  95. document.write('<!--');
  96. document.write('  div.WebHelpPopupMenu {position:absolute; left:0px; top:0px; z-index:4; visibility:hidden;}');
  97. document.write('  p.WebHelpNavBar {text-align:left; }');
  98. document.write('-->');
  99. document.write('</style>');
  100.  
  101. document.write('<script src="../bsscnbar.js" language="JavaScript" title="WebHelpNavBarExtJs" >');
  102. document.write('</script>');
  103.  
  104. document.write('</head>');
  105.  
  106. <!--(Body)==========================================================-->
  107.  
  108.  
  109. document.write('<body>');
  110.  
  111. if (parseInt(navigator.appVersion) >=3  && window.name.indexOf("BSSCPopup") == -1)
  112. {
  113. var strNvHome=""; var strNvBrowse=""; var strNvWebSearch="";
  114. if ((typeof (BsscNavHasNavFrame) != "undefined") &&
  115.  (typeof(BsscNavIsList) == "undefined" || !BsscNavIsList())) 
  116. {
  117.   if (!BsscNavHasNavFrame()) {
  118.     strNvHome  = "<a href=\"javascript:void(0);\" onclick=\"onBsscNavShow('../GrooveHelp.htm');return false;\"><img src='../bsscnav1.gif' width=85 height=18 border=no></a>";
  119.   } else {
  120.     strNvHome  = "<a href=\"javascript:void(0);\" onclick=\"onBsscNavHide();return false;\"><img src='../bsscnav2.gif' width=77 height=18 border=no></a>";
  121.   }
  122.   strNvHome += "<a href=\"javascript:void(0);\" onclick=\"onBsscNavSync('../GrooveHelp.htm');return false;\"><img src='../bsscnav3.gif' width=59 height=18 border=no></a>";
  123. }
  124. if ((strNvHome.length != 0) || (strNvBrowse.length != 0) || (strNvWebSearch.length != 0)) {
  125.   document.write("<p id='NavBar' align='left' class=WebHelpNavBar><nobr><font size=1>");
  126.   if (strNvHome.length != 0) document.write(strNvHome);
  127.   if (strNvBrowse.length != 0) document.write(strNvBrowse);
  128.   if (strNvWebSearch.length != 0) document.write(strNvWebSearch);
  129.   document.write("</font>   </nobr></p>");
  130.   }
  131. }
  132.  
  133. document.write('<p>The help file you requested has not been downloaded.  Groove will');
  134. document.write(' now download the file for you, and notify you when it arrives.</p>');
  135.  
  136. document.write('<p>Once Groove notifies you that your help file has arrived, <a href="javascript:this.location.reload(true)">click here</a> to display it in this window.</p>');
  137.  
  138. document.write('</body>');
  139.  
  140. document.write('</html>');
  141.