3 <title>Mesh Module Reference Manual</title>
5 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
6 <meta name="description" content="WebHelp 5.50">
8 <script language="javascript1.2" src="whutils.js"></script>
9 <script language="javascript1.2" src="whmsg.js"></script>
10 <script language="javascript" src="whver.js"></script>
11 <script language="javascript1.2" src="whstub.js"></script><script language="javascript1.2" src="whstart.js"></script>
12 <script language="javascript">
14 var strDefaultTopic = "about:blank";
15 var nWebhelpNavPaneMode = 1; //1: DHTML 2:Applet 3:PureHTML 4:Noframeset
16 var bNoApplet = false;
17 var strPaneDHTML = "whd_nvp10.htm"; //whd_nvp10.htm if tab enabled, whnframe.htm if tab disabled.
18 var strPaneApplet = "whd_nvp20.htm";
19 var strPaneList = "whgdata/whnvp30.htm";
23 var nViewFrameType = -1;
27 this.m_cAgents = new Array;
29 var cMRServer = new CMRServer;
31 //figure out which mode is the best
34 // low end browser, we don't even try to determine it.
35 document.location = "whnjs.htm";
39 if (!gbNav4&&!gbIE4&&!gbOpera7&&!gbSafari)
40 document.location = "whnjs.htm";
41 else if (gbNav4 && !gbNav6 && ((gnVerMinor <= 4.06)))
42 document.location = "whnjs.htm";
43 else if (gbMac && gbIE4 && !gbIE5)
44 document.location = "whnjs.htm";
45 //figure out which mode is the best
48 nViewFrameType=nWebhelpNavPaneMode;
49 if (nWebhelpNavPaneMode==1||nWebhelpNavPaneMode == 2)
51 var gbDHTML=(nWebhelpNavPaneMode==1);
52 if (gbNav4) nViewFrameType = 2;
53 if (gbNav4&&(gnVerMinor < 4.1)) nViewFrameType = 3;
54 if (gbNav4&&(gnVerMinor == 4.6)) nViewFrameType = 3;
55 if (gbIE4&&gbDHTML) nViewFrameType = 1;
56 if (gbIE4&&gbSunOS&&nWebhelpNavPaneMode==2) nViewFrameType = 3;
57 if (gbNav6&&gbDHTML) nViewFrameType = 1;
58 if (gbNav6&&!gbNav61&&nWebhelpNavPaneMode == 2) nViewFrameType = 3;
59 if (gbMac) nViewFrameType = 3;
60 if (gbOpera7&&nViewFrameType == 2) nViewFrameType = 3;
61 if ((bNoApplet)&&(nViewFrameType == 2)) nViewFrameType = 3;
66 if (nViewFrameType!=-1)
68 var gbWindows = ((gAgent.indexOf("win") != -1) || (gAgent.indexOf("16bit") != -1));
69 //The colordepth of the 16 color on Windows is 1.
70 if ((gbWindows) && (gbNav4) && (window.screen) && (window.screen.colorDepth <= 4))
72 alert("WebHelp has detected that your display is set to 16 colors. For full WebHelp support, please set your display to use 256 or more colors.");
76 //figure out which one is navpane
77 if (nViewFrameType == 1)
78 strPane = strPaneDHTML;
79 else if (nViewFrameType == 2)
80 strPane = strPaneApplet;
82 strPane = strPaneList;
84 var oParam = new Object();
86 var oMsg = new whMessage(WH_MSG_GETDEFAULTTOPIC, window, 1, oParam);
87 if (SendMessage(oMsg) && oParam.sTopic != "")
88 strDefaultTopic = oParam.sTopic;
91 if (nViewFrameType == 1)
93 //DHTML (iframe or xml based)
94 strHTML += "<frameset id=\"whPfset\" cols=\"260,*\" frameborder=\"1\">";
95 strHTML += "<frame name=\"bsscleft\" title=\"navigation frame\" src=\"" + strPane + "\" scrolling=\"no\"></frame>";
96 strHTML += "<frame name=\"bsscright\" title=\"topic frame\" src=\"" + strDefaultTopic + "\" scrolling=\"auto\"></frame></frameset>";
98 else if (nViewFrameType == 2)
101 strHTML += "<frameset id=\"whPfset\" cols=\"260,*\" framespacing=\"0\" frameborder=\"0\" border=\"0\">";
102 strHTML += "<frame name=\"bsscleft\" title=\"navigation frame\" src=\"" + strPane+ "\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\"></frame>";
103 strHTML += "<frame name=\"bsscright\" title=\"topic frame\" src=\"" + strDefaultTopic + "\" scrolling=\"auto\"></frame></frameset>";
105 else if (nViewFrameType == 3)
107 //generic html (pure html based)
108 strHTML += "<frameset id=\"whPfset\" cols=\"260,*\">";
109 strHTML += "<frame title=\"navigation frame\" src=\"" + strPane + "\" name=\"bsscleft\" scrolling=\"no\"></frame>";
110 strHTML += "<frame title=\"topic frame\" src=\"" + strDefaultTopic + "\" name=\"bsscright\" scrolling=\"auto\"></frame>";
111 strHTML += "</frameset>";
113 else if (nViewFrameType == 4)
116 strHTML += "<frameset id=\"whPfset\" border=\"0\" cols=\"100%,*\">";
117 strHTML += "<frame title=\"topic frame\" src=\"" + strDefaultTopic + "\" name=\"bsscright\" framespacing=\"0\" frameborder=\"0\" border=\"0\" scrolling=\"auto\">";
118 strHTML += "</frameset>";
121 document.write(strHTML);
123 RegisterListener2(window, WH_MSG_SHOWPANE);
124 RegisterListener2(window, WH_MSG_HIDEPANE);
125 RegisterListener2(window, WH_MSG_ISPANEVISIBLE);
126 window.onunload = window_unload;
129 function window_unload()
131 UnRegisterListener2(window, WH_MSG_SHOWPANE);
132 UnRegisterListener2(window, WH_MSG_HIDEPANE);
133 UnRegisterListener2(window, WH_MSG_ISPANEVISIBLE);
137 function onSendMessage(oMsg)
139 var nMsgId = oMsg.nMessageId;
140 if (nMsgId == WH_MSG_SHOWPANE)
142 getElement("whPfset").cols = "260,*";
143 var onMsg = new whMessage(WH_MSG_PANESTATUE, this, 1, "visible");
145 onMsg = new whMessage(WH_MSG_GETPANEINFO, this, 1, "");
146 if (SendMessage(onMsg))
148 onMsg = new whMessage(WH_MSG_PANEINFO, this, 1, onMsg.oParam);
153 else if (nMsgId == WH_MSG_HIDEPANE)
155 getElement("whPfset").cols = "0,*";
156 var onMsg = new whMessage(WH_MSG_PANESTATUE, this, 1, "invisible");
158 onMsg = new whMessage(WH_MSG_PANEINFO, this, 1, "");
162 else if (nMsgId == WH_MSG_ISPANEVISIBLE)
164 var n = parseInt(getElement("whPfset").cols);
167 oMsg.oParam.bVisible = true;
177 <p> It seems javascript is disabled in your browser, please enable it and reload again, or click <a href="whnjs.htm">here</a> to view without javascript</p>