Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

// WebHelp 5.10.001
// this value should be identical to the value used in whproxy.js
window.whname = "wh_stub";

// this file will be used by Topic and NavBar and NavPane and other components
// and this file is used in child frame html.
// and the whstub.js will be used in the start page.
// see reference in whstub.js.
// Internal Area
var gbInited = false;
var gWndStubPage = null;
function getStubPage()
{
if (!gbInited)
{
gWndStubPage = getStubPage_inter(window);
gbInited = true;
}
return gWndStubPage;
}

function getStubPage_inter(wCurrent) {
if (null == wCurrent.parent || wCurrent.parent == wCurrent)
return null;

if (wCurrent.parent.whname && "wh_stub" == wCurrent.parent.whname)
return wCurrent.parent;
else
if (wCurrent.parent.frames.length != 0 && wCurrent.parent != wCurrent)
return getStubPage_inter(wCurrent.parent);
else
return null;
}

// Public interface begin here................
function registerListener(framename, nMessageId)
{
var wStartPage = getStubPage();
if (wStartPage && wStartPage != this) {
return wStartPage.registerListener(framename, nMessageId);
}
else
return false;
}

function registerListener2(oframe, nMessageId)
{
var wStartPage = getStubPage();
if (wStartPage && wStartPage != this) {
return wStartPage.registerListener2(oframe, nMessageId);
}
else
return false;
}

function unregisterListener2(oframe, nMessageId)
{
var wStartPage = getStubPage();
if (wStartPage && wStartPage != this && wStartPage.unregisterListener2) {
return wStartPage.unregisterListener2(oframe, nMessageId);
}
else
return false;
}

function SendMessage(oMessage)
{
var nMsgId = oMessage.nMessageId;
if (nMsgId == WH_MSG_ISINFRAMESET && oMessage.wSender != this)
return true;
var wStartPage = getStubPage();
if (wStartPage && wStartPage != this && wStartPage.SendMessage)
{
return wStartPage.SendMessage(oMessage);
}
else
return false;
}
var gbWhProxy=true;