|
// WebHelp 5.10.001
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(typeof(wCurrent.parent.whname)=="string"&&"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;
}
function RegisterListener(framename,nMessageId)
{
var wSP=getStubPage();
if(wSP&&wSP!=this)
return wSP.RegisterListener(framename,nMessageId);
else
return false;
}
function RegisterListener2(oframe,nMessageId)
{
var wSP=getStubPage();
if(wSP&&wSP!=this)
return wSP.RegisterListener2(oframe,nMessageId);
else
return false;
}
function UnRegisterListener2(oframe,nMessageId)
{
var wSP=getStubPage();
if(wSP&&wSP!=this&&wSP.UnRegisterListener2)
return wSP.UnRegisterListener2(oframe,nMessageId);
else
return false;
}
function SendMessage(oMessage)
{
var wSP=getStubPage();
if(wSP&&wSP!=this&&wSP.SendMessage)
return wSP.SendMessage(oMessage);
else
return false;
}
var gbWhProxy=true;
var gbPreview=false;
gbPreview=false;
if (gbPreview)
document.oncontextmenu=contextMenu;
function contextMenu()
{
return false;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Bob Pittenger is founder and President of Starpoint Software Inc. He holds a B.A. degree from Miami University, M.S. and Ph.D. degrees from Purdue University, and an MBA from Xavier University. He has been programming since 1993, starting with Windows application development in C++/MFC and moving to C# and .NET around 2005 and is a .NET Microsoft Certified Professional Developer.
Bob is the author of two books:
Billionaire: How the Ultra-Rich Built Their Fortunes Through Good and Evil and What You Can Learn from Them
and
Wealthonomics: The Most Important Economic and Financial Concepts that Can Make You Rich Fast.
Visit http://www.billionairebook.net for more information.