Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
whframes.js
Package: AdventNetSNMPAPI_4.zip [view]
Upload User: aonuowh
Upload Date: 2021-05-23
Package Size: 35390k
Code Size: 2k
Category:
SNMP
Development Platform:
C/C++
- // 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;