3 <title>Navigation Pane</title>
5 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
6 <meta name="description" content="WebHelp 5.50">
7 <script language="javascript" src="whver.js"></script>
8 <script language="javascript1.2" src="whmsg.js"></script>
9 <script language="javascript1.2" src="whproxy.js"></script>
10 <script language="javascript1.2" src="whutils.js"></script>
11 <script language="javascript1.2">
15 var gbLoading = "unknown";
21 var gbretrytime = new Array();
27 gbretrytime[1]= 30000;
28 gbretrytime[2]= 60000;
30 function addPane(sName, sFile)
34 function setShowPane(sName)
38 addPane("toc","whtdhtml.htm");
39 addPane("fts","whfdhtml.htm");
43 function window_unload()
45 if (!gbNav4 || gbNav6) // resize will call unload, but the register code will never be called on Netscape 4.
47 UnRegisterListener2(this, WH_MSG_SHOWTOC);
48 UnRegisterListener2(this, WH_MSG_SHOWIDX);
49 UnRegisterListener2(this, WH_MSG_SHOWFTS);
50 UnRegisterListener2(this, WH_MSG_SHOWGLO);
51 UnRegisterListener2(this, WH_MSG_SYNCTOC);
52 UnRegisterListener2(this, WH_MSG_SEARCHTHIS);
53 UnRegisterListener2(this, WH_MSG_GETPANEINFO);
57 function window_OnLoad()
60 var oMsg=new whMessage(WH_MSG_GETCMD,this,1,null);
61 if (SendMessage(oMsg))
67 else if(oMsg.oParam==2)
69 else if(oMsg.oParam==3)
71 else if(oMsg.oParam==4)
74 else if(oMsg.oParam==0)
81 oMsg=new whMessage(WH_MSG_HIDEPANE,this,1,null)
84 else if (gsInitPane == "toc")
86 oMsg=new whMessage(WH_MSG_SHOWTOC,this,1,null)
89 else if (gsInitPane=="idx")
91 oMsg=new whMessage(WH_MSG_SHOWIDX,this,1,null)
94 else if (gsInitPane=="fts")
96 oMsg=new whMessage(WH_MSG_SHOWFTS,this,1,null)
99 else if (gsInitPane=="glo")
101 oMsg=new whMessage(WH_MSG_SHOWGLO,this,1,null)
114 if(document.body.clientWidth > 1 && document.body.clientHeight>1)
116 oMsg = new whMessage(WH_MSG_RESIZEPANE,this,1,null);
123 if (window.innerWidth != 0 && window.innerHeight != 0)
125 oMsg = new whMessage(WH_MSG_RESIZEPANE,this,1,null);
131 function CheckLoadingPhase0()
134 setTimeout("CheckLoadingPhase0()", 1000);
139 CheckLoadingPhase1();
143 function CheckLoadingPhase1()
146 if ("unknown" == gbLoading && document.readystate < 4) {
147 setTimeout("CheckLoadingPhase1()", 1000);
149 else if ("unknown" == gbLoading) {
150 CheckLoadingPhase2();
155 function CheckLoadingPhase2()
159 if ("unknown" == gbLoading) {
160 if (gbTryTime <= gbMaxTryTime )
161 setTimeout("CheckLoadingPhase2()", 1000);
163 if (gnVerMinor != 4.60) {
164 alert("Unable to load applet. If you are using an old version of Netscape, the prefs.js file needs to be edited.");
171 function CheckAppletLoaded()
173 if (typeof(document.WebHelp) == "undefined")
175 document.location.reload();
176 if (gbretried < gbmaxretry)
179 setTimeout("CheckAppletLoaded();", gbretrytime[gbretried]);
186 if (innerWidth != origWidth || innerHeight != origHeight)
188 //reloaded applet if nessary
191 if (gnVerMinor == 4.60)
193 //reload the applet again.
194 document.location.reload();
197 setTimeout("CheckAppletLoaded();", gbretrytime[gbretried]);
201 function onSendMessage(oMsg)
205 var nMsgId = oMsg.nMessageId;
206 var WebHelpApplet = null;
209 WebHelpApplet = document.applets["WebHelp"];
210 if (!WebHelpApplet.Command)
211 document.location="whskin_plist.htm";
214 WebHelpApplet = window.WebHelp;
216 if(nMsgId==WH_MSG_GETPANEINFO)
218 oMsg.oParam=gsCurrentPane;
221 else if(gbLoading!="unknown" || gbNav6)
223 if (nMsgId == WH_MSG_SHOWTOC)
226 WebHelpApplet.Command("Contents",null);
227 var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"toc");
229 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
232 else if(nMsgId==WH_MSG_SHOWIDX)
235 WebHelpApplet.Command("Index",null);
236 var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"idx");
238 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
241 else if(nMsgId==WH_MSG_SHOWFTS)
244 WebHelpApplet.Command("Search",null);
245 var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"fts");
247 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
250 else if(nMsgId==WH_MSG_SHOWGLO)
253 WebHelpApplet.Command("Glossary",null);
254 var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"glo");
256 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
259 else if(nMsgId==WH_MSG_SYNCTOC)
262 var oTopicParam=oMsg.oParam;
263 if(oTopicParam&&oTopicParam.aPaths&&oTopicParam.aPaths.length>0&&oTopicParam.sPPath)
265 var sPPath=_browserStringToText(oTopicParam.sPPath);
267 for(var i=0;i<oTopicParam.aPaths.length;i++)
269 sParam+=oTopicParam.aPaths[i]+"\r\r";
271 WebHelpApplet.Command("SyncToc",sPPath,sParam);
274 else if(nMsgId==WH_MSG_SEARCHTHIS)
277 WebHelpApplet.Command("Search",oMsg.oParam);
278 var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"fts");
280 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
288 function getInitTocInfo()
290 var oParam=new Object();
291 oParam.oTocInfo=null;
292 var oMsg=new whMessage(WH_MSG_GETTOCPATHS,this,1,oParam);
293 if(SendMessage(oMsg))
295 var oTopicParam=oMsg.oParam.oTocInfo;
296 if(oTopicParam&&oTopicParam.aPaths&&oTopicParam.aPaths.length>0&&oTopicParam.sPPath)
298 var sPPath=_browserStringToText(oTopicParam.sPPath);
300 for(var i=0;i<oTopicParam.aPaths.length;i++)
302 sParam+=oTopicParam.aPaths[i]+"\r\r";
306 WebHelpApplet=document.applets["WebHelp"];
308 WebHelpApplet=WebHelp;
309 WebHelpApplet.Command("SyncToc",sPPath,sParam);
314 if(window.gbWhUtil&&window.gbWhMsg&&window.gbWhVer&&window.gbWhProxy)
316 RegisterListener2(this, WH_MSG_SHOWTOC);
317 RegisterListener2(this, WH_MSG_SHOWIDX);
318 RegisterListener2(this, WH_MSG_SHOWFTS);
319 RegisterListener2(this, WH_MSG_SHOWGLO);
320 RegisterListener2(this, WH_MSG_SYNCTOC);
321 RegisterListener2(this, WH_MSG_SEARCHTHIS);
322 RegisterListener2(this, WH_MSG_GETPANEINFO);
324 window.onresize=onResize;
325 window.onunload = window_unload;
326 window.onload=window_OnLoad;
327 window.onerror = null;
328 var gbWindows = ((gAgent.indexOf("win") != -1) || (gAgent.indexOf("16bit") != -1));
330 if (gbNav4 && !gbNav6 && gbWindows) {
331 setTimeout("CheckLoadingPhase0()", 1000);
335 origWidth = innerWidth;
336 origHeight = innerHeight;
341 document.location.reload();
345 var oMsg=new whMessage(WH_MSG_RELOADNS6,this, 1,null);
351 <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="c0c0c0">
352 <applet code=WebHelp.class name=WebHelp archive=webhelp.jar width=100% height=100% MAYSCRIPT hspace=0 vspace=0>
353 <PARAM name=ProjectFile value=whproj.xml><PARAM name=ResourceFile value=whres.xml>
354 <PARAM name=HideTabs value=true>
355 <PARAM name=Frame value=bsscright>
356 <PARAM name=cabbase value=webhelp.cab>