Produced by Araxis Merge on 1/2/2018 11:57:24 AM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Tue Jan 2 16:57:24 2018 UTC | ||
| 2 | HTRE_P2.zip\src.zip\output\IHTA OLH Files.zip\ihta.zip | whphost.js | Fri Mar 24 20:39:28 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 643 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | // We bHelp 5.10 .005 | |||||
| 2 | var gaProj =new Array (); | |||||
| 3 | var gnChec ked=0; | |||||
| 4 | var gsProj Name=""; | |||||
| 5 | var gbRead y=false; | |||||
| 6 | var goMan= null; | |||||
| 7 | var gbXML= false; | |||||
| 8 | var gsFirs tPane=""; | |||||
| 9 | var gServe rEnabled=f alse; | |||||
| 10 | var gsPath =""; | |||||
| 11 | var gbWhPH ost=false; | |||||
| 12 | var goDiv = null; | |||||
| 13 | var gsHTML = ""; | |||||
| 14 | var gsPage Dir="ltr" | |||||
| 15 | ||||||
| 16 | if (naviga tor.curren tNavPen) | |||||
| 17 | gs FirstPane = navigato r.currentN avPen; | |||||
| 18 | ||||||
| 19 | function w hCom(sName ,sComFile) | |||||
| 20 | { | |||||
| 21 | va r alignmen t = (gsPag eDir == "r tl")?"righ t":"left" | |||||
| 22 | th is.msName= sName; | |||||
| 23 | th is.msDivId =sName+"Di v"; | |||||
| 24 | th is.msIFram eId=sName+ "IFrame"; | |||||
| 25 | th is.msComFi le=sComFil e; | |||||
| 26 | th is.mbloade d=false; | |||||
| 27 | th is.mbShow= false; | |||||
| 28 | th is.show=fu nction(bSh ow) | |||||
| 29 | { | |||||
| 30 | if(t his.mbShow !=bShow) | |||||
| 31 | { | |||||
| 32 | if(bSh ow&&!this. mbloaded) | |||||
| 33 | { | |||||
| 34 | this.loa d(); | |||||
| 35 | } | |||||
| 36 | ||||||
| 37 | var oD iv=getElem ent(this.m sDivId); | |||||
| 38 | if (oD iv) | |||||
| 39 | { | |||||
| 40 | oDiv.sty le.zIndex = bShow ? 3 : 2; | |||||
| 41 | this.mbS how = bSho w; | |||||
| 42 | } | |||||
| 43 | } | |||||
| 44 | } | |||||
| 45 | th is.load=fu nction() | |||||
| 46 | { | |||||
| 47 | if(! this.mbloa ded) | |||||
| 48 | { | |||||
| 49 | if(thi s.msComFil e.length>0 ){ | |||||
| 50 | var strF ile = _get FullPath(g etPath(), this.msCom File); | |||||
| 51 | var oDiv = getElem ent(this.m sDivId); | |||||
| 52 | if(oDiv) { | |||||
| 53 | sHTML = "< iframe id= " + this.m sIFrameId + " title= \"" + this .msName + "\" src=\" " + strFil e + "\" bo rder=\"0\" framebord er=\"no\" style=\"wi dth:100%;b order:0;he ight:100%; \"></ifram e>"; | |||||
| 54 | oDiv.inner HTML = sHT ML; | |||||
| 55 | this.mbloa ded = true ; | |||||
| 56 | } | |||||
| 57 | } | |||||
| 58 | } | |||||
| 59 | } | |||||
| 60 | th is.unload= function() | |||||
| 61 | { | |||||
| 62 | var oDiv=getEl ement(this .msDivId); | |||||
| 63 | if(o Div) | |||||
| 64 | oDiv.i nnerHTML=" "; | |||||
| 65 | } | |||||
| 66 | th is.getDivH TML=functi on() | |||||
| 67 | { | |||||
| 68 | var sHTML = "< div id=" + this.msDi vId + " al ign=" +ali gnment+" s tyle=\"pos ition:abso lute;z-ind ex:1;" +al ignment+" :0;top:0;w idth:100%; height:100 %;\"></div >"; | |||||
| 69 | retu rn sHTML; | |||||
| 70 | } | |||||
| 71 | } | |||||
| 72 | ||||||
| 73 | function w hComMan() | |||||
| 74 | { | |||||
| 75 | th is.sName=" "; | |||||
| 76 | th is.maCom=n ew Array() ; | |||||
| 77 | th is.addCom= function(s Name,sComF ile) | |||||
| 78 | { | |||||
| 79 | var owhCom=new whCom(sNa me,sComFil e); | |||||
| 80 | this .maCom[thi s.maCom.le ngth]=owhC om; | |||||
| 81 | } | |||||
| 82 | th is.init=fu nction() | |||||
| 83 | { | |||||
| 84 | var sHTML=""; | |||||
| 85 | for( var i=0;i< this.maCom .length;i+ +) | |||||
| 86 | { | |||||
| 87 | sHTML+ =this.maCo m[i].getDi vHTML(); | |||||
| 88 | } | |||||
| 89 | if(g bSafari&&! gbSafari3) | |||||
| 90 | { | |||||
| 91 | var ra nge = docu ment.creat eRange(); | |||||
| 92 | range. setStartBe fore(docum ent.body.l astChild); | |||||
| 93 | var do cFrag = ra nge.create Contextual Fragment(s HTML); | |||||
| 94 | docume nt.body.ap pendChild( docFrag) | |||||
| 95 | } | |||||
| 96 | else | |||||
| 97 | docume nt.body.in sertAdjace ntHTML("be foreEnd",s HTML); | |||||
| 98 | ||||||
| 99 | } | |||||
| 100 | th is.showByI d=function (nId) | |||||
| 101 | { | |||||
| 102 | for( var s=0;s< this.maCom .length;s+ +) | |||||
| 103 | { | |||||
| 104 | if(s!= =nId) | |||||
| 105 | this.maC om[s].show (false); | |||||
| 106 | } | |||||
| 107 | this .maCom[nId ].show(tru e); | |||||
| 108 | } | |||||
| 109 | th is.show=fu nction(sNa me) | |||||
| 110 | { | |||||
| 111 | navi gator.curr entNavPen = sName; | |||||
| 112 | var bFound=fal se; | |||||
| 113 | for( var i=0;i< this.maCom .length;i+ +) | |||||
| 114 | { | |||||
| 115 | if(sNa me==this.m aCom[i].ms Name) | |||||
| 116 | { | |||||
| 117 | bFound=t rue; | |||||
| 118 | break; | |||||
| 119 | } | |||||
| 120 | } | |||||
| 121 | if(b Found) | |||||
| 122 | { | |||||
| 123 | this.s howById(i) ; | |||||
| 124 | this.s Name=sName ; | |||||
| 125 | } | |||||
| 126 | } | |||||
| 127 | th is.unload= function() | |||||
| 128 | { | |||||
| 129 | for( var i=0;i< this.maCom .length;i+ +) | |||||
| 130 | { | |||||
| 131 | this.m aCom[i].un load(); | |||||
| 132 | } | |||||
| 133 | } | |||||
| 134 | th is.getCurr ent=functi on() | |||||
| 135 | { | |||||
| 136 | retu rn this.sN ame; | |||||
| 137 | } | |||||
| 138 | } | |||||
| 139 | ||||||
| 140 | function g etPath() | |||||
| 141 | { | |||||
| 142 | if (gsPath==" ") | |||||
| 143 | { | |||||
| 144 | gsPa th=locatio n.href; | |||||
| 145 | gsPa th=_replac eSlash(gsP ath); | |||||
| 146 | var nPosFile=g sPath.last IndexOf("/ "); | |||||
| 147 | gsPa th=gsPath. substring( 0,nPosFile +1); | |||||
| 148 | } | |||||
| 149 | re turn gsPat h; | |||||
| 150 | } | |||||
| 151 | ||||||
| 152 | goMan=new whComMan() ; | |||||
| 153 | ||||||
| 154 | function o nGetPane(o Msg) | |||||
| 155 | { | |||||
| 156 | if (oM sg.oParam. bEnable) | |||||
| 157 | go Man.addCom (oMsg.iPar am.sName, oMsg.iPara m.sFileNam e); | |||||
| 158 | } | |||||
| 159 | ||||||
| 160 | function a ddPane(sNa me,sFileNa me) | |||||
| 161 | { | |||||
| 162 | va r iParam=n ew Object( ); | |||||
| 163 | iP aram.sName = sName; | |||||
| 164 | iP aram.sFile Name = sFi leName; | |||||
| 165 | va r oMsg=new whMessage (WH_MSG_GE TPANE, iPa ram, new O bject()); | |||||
| 166 | re quest(oMsg , onGetPan e); | |||||
| 167 | } | |||||
| 168 | ||||||
| 169 | function o nGetDefPan e(oMsg) { | |||||
| 170 | if (oM sg.oParam) | |||||
| 171 | gs FirstPane = oMsg.oPa ram; | |||||
| 172 | else | |||||
| 173 | gs FirstPane = oMsg.iPa ram.sName; | |||||
| 174 | } | |||||
| 175 | ||||||
| 176 | function s etShowPane (sName, bF orce) | |||||
| 177 | { | |||||
| 178 | if ((gsFirst Pane == "" ) || bForc e) | |||||
| 179 | { | |||||
| 180 | var iParam=new Object(); | |||||
| 181 | iPar am.sName = sName; | |||||
| 182 | var oMsg=new w hMessage(W H_MSG_GETD EFPANE, iP aram, null ); | |||||
| 183 | requ est(oMsg, onGetDefPa ne); | |||||
| 184 | } | |||||
| 185 | } | |||||
| 186 | ||||||
| 187 | function o nGetCmd(oM sg) { | |||||
| 188 | var bH idePane = false; | |||||
| 189 | if (oM sg) { | |||||
| 190 | if (oMsg.oPa ram > 0) { | |||||
| 191 | if (oMsg .oParam == 1) | |||||
| 192 | gsFi rstPane = "toc"; | |||||
| 193 | else if (oMsg.oPar am == 2) | |||||
| 194 | gsFi rstPane = "idx"; | |||||
| 195 | else if (oMsg.oPar am == 3) | |||||
| 196 | gsFi rstPane = "fts"; | |||||
| 197 | else if (oMsg.oPar am == 4) | |||||
| 198 | gsFi rstPane = "glo"; | |||||
| 199 | } | |||||
| 200 | el se if (oMs g.oParam = = 0) { | |||||
| 201 | bHidePan e = true; | |||||
| 202 | } | |||||
| 203 | } | |||||
| 204 | goMan. init(); | |||||
| 205 | if (gs ProjName ! = "") | |||||
| 206 | lo adData2(gs ProjName); | |||||
| 207 | if (bH idePane) { | |||||
| 208 | gs FirstPane = ""; | |||||
| 209 | va r oMsg1 = new whMess age(WH_MSG _HIDEPANE, null, nul l) | |||||
| 210 | no tify(oMsg1 ); | |||||
| 211 | } | |||||
| 212 | else { | |||||
| 213 | if (gsFirstP ane != "") | |||||
| 214 | goMan.sh ow(gsFirst Pane); | |||||
| 215 | el se | |||||
| 216 | goMan.sh owById(0); | |||||
| 217 | } | |||||
| 218 | } | |||||
| 219 | ||||||
| 220 | function S endGetCmd( ) { | |||||
| 221 | if (go Man && goM an.maCom.l ength > 0) { | |||||
| 222 | va r oMsg = n ew whMessa ge(WH_MSG_ GETCMD, nu ll, null); | |||||
| 223 | re quest(oMsg , onGetCmd ); | |||||
| 224 | } | |||||
| 225 | else { | |||||
| 226 | se tTimeout(" SendGetCmd ();", 1); | |||||
| 227 | } | |||||
| 228 | } | |||||
| 229 | ||||||
| 230 | function w indow_OnLo ad() { | |||||
| 231 | SendGe tCmd(); | |||||
| 232 | } | |||||
| 233 | ||||||
| 234 | function s etServerEn abled() | |||||
| 235 | { | |||||
| 236 | gS erverEnabl ed = true; | |||||
| 237 | } | |||||
| 238 | ||||||
| 239 | function l oadData2(s trFile) | |||||
| 240 | { | |||||
| 241 | if (gbXML) | |||||
| 242 | load DataXML(st rFile); | |||||
| 243 | el se | |||||
| 244 | load Data(strFi le); | |||||
| 245 | } | |||||
| 246 | ||||||
| 247 | function a ddProject( bPreferXML ,sXMLName, sHTMLName) | |||||
| 248 | { | |||||
| 249 | va r bLoadXML =bPreferXM L; | |||||
| 250 | if (!gbIE4&&! gbNav6&&!g bOpera7&&! gbSafari3) | |||||
| 251 | retu rn; | |||||
| 252 | if (gbIE4&&!g bIE5) | |||||
| 253 | bLoa dXML=false ; | |||||
| 254 | if (gbIE5&&! gbMac) | |||||
| 255 | bLoa dXML=true; | |||||
| 256 | if (gbIE55||g bNav6||gbS afari3) | |||||
| 257 | bLoa dXML=true; | |||||
| 258 | if (gbOpera7) | |||||
| 259 | bLoa dXML=false ; | |||||
| 260 | if (bLoadXML) | |||||
| 261 | addP rojectXML( sXMLName); | |||||
| 262 | el se | |||||
| 263 | addP rojectHTML (sHTMLName ); | |||||
| 264 | } | |||||
| 265 | ||||||
| 266 | function a ddProjectH TML(sName) | |||||
| 267 | { | |||||
| 268 | gb XML=false; | |||||
| 269 | gs ProjName=s Name; | |||||
| 270 | } | |||||
| 271 | ||||||
| 272 | function m rAlterProj Url(sProjU rl) | |||||
| 273 | { | |||||
| 274 | if ( mrIsOnEn gine()==tr ue ) | |||||
| 275 | { | |||||
| 276 | var sProjName= mrGetProjN ame(); | |||||
| 277 | if( sProjName! ='' ) | |||||
| 278 | { | |||||
| 279 | // now build the server ur l | |||||
| 280 | sProjU rl=mrGetEn gineUrl()+ '?mgr=sys& cmd=prjinf &prj='+sPr ojName; | |||||
| 281 | }; | |||||
| 282 | }; | |||||
| 283 | ||||||
| 284 | re turn sProj Url; | |||||
| 285 | }; | |||||
| 286 | ||||||
| 287 | function a ddProjectX ML(sName) | |||||
| 288 | { | |||||
| 289 | // intialize the roboe ngine vari albes | |||||
| 290 | mr Initialize (); | |||||
| 291 | ||||||
| 292 | gb XML=true; | |||||
| 293 | gs ProjName=m rAlterProj Url(sName) ; | |||||
| 294 | } | |||||
| 295 | ||||||
| 296 | function w indow_MyBu nload() | |||||
| 297 | { | |||||
| 298 | go Man.unload (); | |||||
| 299 | wi ndow_BUnlo ad(); | |||||
| 300 | } | |||||
| 301 | ||||||
| 302 | function p utDataXML( xmlDoc,sdo cPath) | |||||
| 303 | { | |||||
| 304 | if (xmlDoc!=n ull) | |||||
| 305 | { | |||||
| 306 | var projectNod e=xmlDoc.g etElements ByTagName( "project") [0]; | |||||
| 307 | if(p rojectNode ) | |||||
| 308 | { | |||||
| 309 | var aR Proj=new A rray(); | |||||
| 310 | aRProj [0]=new Ob ject(); | |||||
| 311 | aRProj [0].sPPath =_getPath( sdocPath); | |||||
| 312 | ||||||
| 313 | // ser ver serves the full path, so w e don't ne ed the pro ject path anymore | |||||
| 314 | if( mr IsOnEngine ()==true ) | |||||
| 315 | aRProj[0 ].sPPath=" "; | |||||
| 316 | ||||||
| 317 | var sL angId=proj ectNode.ge tAttribute ("langid") ; | |||||
| 318 | if(sLa ngId) | |||||
| 319 | { | |||||
| 320 | aRProj[0 ].sLangId= sLangId; | |||||
| 321 | } | |||||
| 322 | var sD Path=proje ctNode.get Attribute( "datapath" ); | |||||
| 323 | if(sDP ath) | |||||
| 324 | { | |||||
| 325 | if(sDPat h.lastInde xOf("/")!= sDPath.len gth-1) | |||||
| 326 | sDPath+="/ "; | |||||
| 327 | aRProj[0 ].sDPath=s DPath; | |||||
| 328 | } | |||||
| 329 | else | |||||
| 330 | aRProj[0 ].sDPath=" "; | |||||
| 331 | aRProj [0].sToc=p rojectNode .getAttrib ute("toc") ; | |||||
| 332 | aRProj [0].sIdx=p rojectNode .getAttrib ute("index "); | |||||
| 333 | aRProj [0].sFts=p rojectNode .getAttrib ute("fts") ; | |||||
| 334 | aRProj [0].sGlo=p rojectNode .getAttrib ute("gloss ary"); | |||||
| 335 | var Rm tProject=p rojectNode .getElemen tsByTagNam e("remote" ); | |||||
| 336 | var nC ount=1; | |||||
| 337 | for (v ar i=0;i<R mtProject. length;i++ ) | |||||
| 338 | { | |||||
| 339 | var sURL =RmtProjec t[i].getAt tribute("u rl"); | |||||
| 340 | if(sURL) | |||||
| 341 | { | |||||
| 342 | if(sURL.la stIndexOf( "/")!=sURL .length-1) | |||||
| 343 | sU RL+="/"; | |||||
| 344 | aRProj[nCo unt]=new O bject(); | |||||
| 345 | aRProj[nCo unt++].sPP ath=_getFu llPath(aRP roj[0].sPP ath,sURL); | |||||
| 346 | } | |||||
| 347 | } | |||||
| 348 | putPro jectInfo(a RProj); | |||||
| 349 | } | |||||
| 350 | else | |||||
| 351 | { | |||||
| 352 | // on Netscape 6 .0 under s ome situat ion the xm l file can not be loa ded. | |||||
| 353 | // so we use pur e html ins tead. | |||||
| 354 | if (gn Checked == 0) | |||||
| 355 | setTimeo ut("redire ctToList() ;",100); | |||||
| 356 | else | |||||
| 357 | { | |||||
| 358 | gnChecke d++; | |||||
| 359 | setTimeo ut("checkR emoteProje ct();", 1) ; | |||||
| 360 | } | |||||
| 361 | } | |||||
| 362 | } | |||||
| 363 | } | |||||
| 364 | ||||||
| 365 | function o nLoadXMLEr ror() | |||||
| 366 | { | |||||
| 367 | gn Checked++; | |||||
| 368 | se tTimeout(" checkRemot eProject() ;", 1); | |||||
| 369 | } | |||||
| 370 | ||||||
| 371 | function r edirectToL ist() | |||||
| 372 | { | |||||
| 373 | if (gbReDirec tThis) | |||||
| 374 | docu ment.locat ion=gsNavR eDirect; | |||||
| 375 | el se | |||||
| 376 | pare nt.documen t.location =gsNavReDi rect; | |||||
| 377 | } | |||||
| 378 | ||||||
| 379 | function p utProjectI nfo(aRProj ) | |||||
| 380 | { | |||||
| 381 | if (gnChecked ==0||isSam ePath(gaPr oj[gnCheck ed].sPPath ,aRProj[0] .sPPath)) | |||||
| 382 | { | |||||
| 383 | if(g nChecked!= 0) | |||||
| 384 | { | |||||
| 385 | if(aRP roj[0].sLa ngId!=gaPr oj[0].sLan gId) | |||||
| 386 | alert("T he merged Help syste m "+aRProj [0].sPPath +" is usin g a differ ent langua ge from th e master H elp system , which wi ll cause t he index a nd full-te xt search functional ity to be disabled i n the merg ed Help sy stem."); | |||||
| 387 | } | |||||
| 388 | gaPr oj[gnCheck ed]=aRProj [0]; | |||||
| 389 | for( var i=1;i< aRProj.len gth;i++) | |||||
| 390 | { | |||||
| 391 | var bF ound=false ; | |||||
| 392 | for(va r j=0;j<ga Proj.lengt h;j++) | |||||
| 393 | { | |||||
| 394 | if(isSam ePath(gaPr oj[j].sPPa th,aRProj[ i].sPPath) ) | |||||
| 395 | { | |||||
| 396 | bFound=tru e; | |||||
| 397 | break; | |||||
| 398 | } | |||||
| 399 | } | |||||
| 400 | if(!bF ound) | |||||
| 401 | { | |||||
| 402 | gaProj[g aProj.leng th]=aRProj [i]; | |||||
| 403 | } | |||||
| 404 | } | |||||
| 405 | gnCh ecked++; | |||||
| 406 | setT imeout("ch eckRemoteP roject();" , 1); | |||||
| 407 | } | |||||
| 408 | el se | |||||
| 409 | aler t("Could n ot load co rrectly, p lease clic k Refresh. "); | |||||
| 410 | } | |||||
| 411 | ||||||
| 412 | function i sSamePath( sPath1,sPa th2) | |||||
| 413 | { | |||||
| 414 | re turn (sPat h1.toLower Case()==sP ath2.toLow erCase()); | |||||
| 415 | } | |||||
| 416 | ||||||
| 417 | function c heckRemote Project() | |||||
| 418 | { | |||||
| 419 | if (gaProj.le ngth > gnC hecked) | |||||
| 420 | { | |||||
| 421 | setT imeout("ca ncelProj(" +gnChecked +");",1000 0); | |||||
| 422 | load Data2(gaPr oj[gnCheck ed].sPPath +gsProjNam e); | |||||
| 423 | } | |||||
| 424 | el se{ | |||||
| 425 | var oMsg=new w hMessage(W H_MSG_PROJ ECTREADY,n ull,null); | |||||
| 426 | gbRe ady=true; | |||||
| 427 | noti fy(oMsg); | |||||
| 428 | } | |||||
| 429 | } | |||||
| 430 | ||||||
| 431 | function c ancelProj( i) | |||||
| 432 | { | |||||
| 433 | if (i==gnChec ked) | |||||
| 434 | { | |||||
| 435 | gnCh ecked++; | |||||
| 436 | setT imeout("ch eckRemoteP roject();" , 1); | |||||
| 437 | } | |||||
| 438 | } | |||||
| 439 | ||||||
| 440 | function w indow_resi ze() | |||||
| 441 | { | |||||
| 442 | fo r(var i=0; i<goMan.ma Com.length ;i++) | |||||
| 443 | { | |||||
| 444 | var oFrame=get Element(go Man.maCom[ i].msIFram eId); | |||||
| 445 | if(o Frame) | |||||
| 446 | { | |||||
| 447 | oFrame .style.hei ght=docume nt.body.cl ientHeight ; | |||||
| 448 | oFrame .style.wid th=documen t.body.cli entWidth; | |||||
| 449 | } | |||||
| 450 | } | |||||
| 451 | wi ndow_resiz e2(); | |||||
| 452 | } | |||||
| 453 | ||||||
| 454 | function w indow_resi ze2() | |||||
| 455 | { | |||||
| 456 | if (document. body) | |||||
| 457 | { | |||||
| 458 | if(d ocument.bo dy.clientW idth > 1 & & document .body.clie ntHeight>1 ) | |||||
| 459 | { | |||||
| 460 | var oM sg = new w hMessage(W H_MSG_RESI ZEPANE, nu ll, null); | |||||
| 461 | notify (oMsg); | |||||
| 462 | } | |||||
| 463 | } | |||||
| 464 | } | |||||
| 465 | ||||||
| 466 | function w indow_unlo ad() | |||||
| 467 | { | |||||
| 468 | un registerLi stener2(WH _MSG_GETPR OJINFO); | |||||
| 469 | un registerLi stener2(WH _MSG_SHOWT OC); | |||||
| 470 | un registerLi stener2(WH _MSG_SHOWI DX); | |||||
| 471 | un registerLi stener2(WH _MSG_SHOWF TS); | |||||
| 472 | un registerLi stener2(WH _MSG_SHOWG LO); | |||||
| 473 | un registerLi stener2(WH _MSG_GETPA NEINFO); | |||||
| 474 | un registerLi stener2(WH _MSG_GETHI GHLIGHTINF O); | |||||
| 475 | // unregister Listener2( WH_MSG_GET SEARCHSTR) ; | |||||
| 476 | // unregister Listener2( WH_MSG_HIL ITESEARCH) ; | |||||
| 477 | // unregister Listener2( WH_MSG_GET NUMRSLT); | |||||
| 478 | } | |||||
| 479 | ||||||
| 480 | function o nReceiveRe quest(oMsg ) { | |||||
| 481 | if (oM sg) { | |||||
| 482 | va r nMsgId = oMsg.msgI d; | |||||
| 483 | if (nMsgId = = WH_MSG_G ETPROJINFO ) { | |||||
| 484 | if (gbRe ady) { | |||||
| 485 | var oProj = ne w Object() ; | |||||
| 486 | oPro j.aProj = gaProj; | |||||
| 487 | oPro j.bXML = g bXML; | |||||
| 488 | oMsg .oParam = oProj; | |||||
| 489 | repl y(oMsg); | |||||
| 490 | } | |||||
| 491 | return f alse; | |||||
| 492 | } | |||||
| 493 | el se if (nMs gId == WH_ MSG_GETPAN EINFO) { | |||||
| 494 | oMsg.oPa ram = goMa n.getCurre nt(); | |||||
| 495 | reply(oM sg); | |||||
| 496 | return f alse; | |||||
| 497 | } | |||||
| 498 | ||||||
| 499 | el se if (oMs g.msgId == WH_MSG_GE THIGHLIGHT INFO) { | |||||
| 500 | var ftsE lem = getE lement("ft sIFrame"); | |||||
| 501 | if (ftsE lem) { | |||||
| 502 | try { | |||||
| 503 | if (typeof (ftsElem. contentWin dow.docume nt) != 'un defined' & & | |||||
| 504 | typeof (ft sElem.cont entWindow. document.f orms[0]) ! = "undefin ed") { | |||||
| 505 | oMsg.o Param.bHig hlight = t rue; | |||||
| 506 | var st r1 = ftsEl em.content Window.doc ument.form s[0].quesn .value; | |||||
| 507 | if (ft sElem.cont entWindow. document.f orms[0].qu esnsyn) { | |||||
| 508 | va r str2 = f tsElem.con tentWindow .document. forms[0].q uesnsyn.va lue; | |||||
| 509 | if (str2 != "") | |||||
| 510 | str1 += str2; | |||||
| 511 | } | |||||
| 512 | oMsg.o Param.strT erms = str 1; | |||||
| 513 | ||||||
| 514 | var tb l = ftsEle m.contentW indow.docu ment.getEl ementById( "FtsRslt") ; | |||||
| 515 | if (tb l) | |||||
| 516 | oM sg.oParam. nResults = tbl.rows. length; | |||||
| 517 | else | |||||
| 518 | oM sg.oParam. nResults = 0; | |||||
| 519 | reply( oMsg); | |||||
| 520 | return false; | |||||
| 521 | } | |||||
| 522 | } | |||||
| 523 | catc h (e) { | |||||
| 524 | return tru e; | |||||
| 525 | } | |||||
| 526 | } | |||||
| 527 | return t rue; | |||||
| 528 | } | |||||
| 529 | ||||||
| 530 | /* else if (n MsgId == W H_MSG_HILI TESEARCH) { | |||||
| 531 | oMsg.oPa ram = true ; | |||||
| 532 | reply(oM sg); | |||||
| 533 | return t rue; | |||||
| 534 | } | |||||
| 535 | el se if (nMs gId == WH_ MSG_GETSEA RCHSTR) { | |||||
| 536 | var ftsE lem = getE lement("ft sIFrame"); | |||||
| 537 | if (ftsE lem) { | |||||
| 538 | if ( typeof (ft sElem.cont entWindow. document.f orms[0]) ! = "undefin ed") { | |||||
| 539 | var str1 = ftsElem.c ontentWind ow.documen t.forms[0] .quesn.val ue; | |||||
| 540 | if (ftsEle m.contentW indow.docu ment.forms [0].quesns yn) { | |||||
| 541 | var st r2 = ftsEl em.content Window.doc ument.form s[0].quesn syn.value; | |||||
| 542 | if (st r2 != "") | |||||
| 543 | st r1 += str2 ; | |||||
| 544 | } | |||||
| 545 | oMsg.oPara m = str1; | |||||
| 546 | } | |||||
| 547 | } | |||||
| 548 | reply(oM sg); | |||||
| 549 | ||||||
| 550 | return t rue; | |||||
| 551 | } | |||||
| 552 | el se if (nMs gId == WH_ MSG_GETNUM RSLT) { | |||||
| 553 | var ftsE lem = getE lement("ft sIFrame"); | |||||
| 554 | if (ftsE lem) { | |||||
| 555 | var tbl = ftsE lem.conten tWindow.do cument.get ElementByI d("FtsRslt "); | |||||
| 556 | if ( tbl) | |||||
| 557 | oMsg.oPara m = tbl.ro ws.length; | |||||
| 558 | else | |||||
| 559 | oMsg.oPara m = 0; | |||||
| 560 | } | |||||
| 561 | else | |||||
| 562 | oMsg .oParam = 0; | |||||
| 563 | reply(oM sg); | |||||
| 564 | return t rue; | |||||
| 565 | }* / | |||||
| 566 | } | |||||
| 567 | return true; | |||||
| 568 | } | |||||
| 569 | ||||||
| 570 | function o nReceiveNo tification (oMsg) | |||||
| 571 | { | |||||
| 572 | if (oMsg) | |||||
| 573 | { | |||||
| 574 | var nMsgId=oMs g.msgId; | |||||
| 575 | if(n MsgId==WH_ MSG_SHOWTO C) | |||||
| 576 | { | |||||
| 577 | if(goM an) | |||||
| 578 | goMan.sh ow("toc"); | |||||
| 579 | var on Msg=new wh Message(WH _MSG_PANEI NFO, "toc" , null); | |||||
| 580 | notify (onMsg); | |||||
| 581 | onMsg = new whMe ssage(WH_M SG_SHOWPAN E, null, n ull); | |||||
| 582 | notify (onMsg); | |||||
| 583 | } | |||||
| 584 | else if(nMsgId ==WH_MSG_S HOWIDX) | |||||
| 585 | { | |||||
| 586 | if(goM an) | |||||
| 587 | goMan.sh ow("idx"); | |||||
| 588 | var on Msg=new wh Message(WH _MSG_PANEI NFO, "idx" , null); | |||||
| 589 | notify (onMsg); | |||||
| 590 | onMsg = new whMe ssage(WH_M SG_SHOWPAN E, null, n ull); | |||||
| 591 | notify (onMsg); | |||||
| 592 | } | |||||
| 593 | else if(nMsgId ==WH_MSG_S HOWFTS) | |||||
| 594 | { | |||||
| 595 | if(goM an) | |||||
| 596 | goMan.sh ow("fts"); | |||||
| 597 | var on Msg=new wh Message(WH _MSG_PANEI NFO, "fts" , null); | |||||
| 598 | notify (onMsg); | |||||
| 599 | onMsg = new whMe ssage(WH_M SG_SHOWPAN E, null, n ull); | |||||
| 600 | notify (onMsg); | |||||
| 601 | } | |||||
| 602 | else if(nMsgId ==WH_MSG_S HOWGLO) | |||||
| 603 | { | |||||
| 604 | if(goM an) | |||||
| 605 | goMan.sh ow("glo"); | |||||
| 606 | var on Msg=new wh Message(WH _MSG_PANEI NFO, "glo" , null); | |||||
| 607 | notify (onMsg); | |||||
| 608 | onMsg = new whMe ssage(WH_M SG_SHOWPAN E, null, n ull); | |||||
| 609 | notify (onMsg); | |||||
| 610 | } | |||||
| 611 | } | |||||
| 612 | re turn true; | |||||
| 613 | } | |||||
| 614 | ||||||
| 615 | if(window. gbWhUtil&& window.gbW hMsg&&wind ow.gbWhVer &&window.g bWhProxy) | |||||
| 616 | { | |||||
| 617 | re gisterList ener2(WH_M SG_GETPROJ INFO); | |||||
| 618 | re gisterList ener2(WH_M SG_SHOWTOC ); | |||||
| 619 | re gisterList ener2(WH_M SG_SHOWIDX ); | |||||
| 620 | re gisterList ener2(WH_M SG_SHOWFTS ); | |||||
| 621 | re gisterList ener2(WH_M SG_SHOWGLO ); | |||||
| 622 | re gisterList ener2(WH_M SG_GETPANE INFO); | |||||
| 623 | re gisterList ener2(WH_M SG_GETHIGH LIGHTINFO) ; | |||||
| 624 | // registerLi stener2(WH _MSG_GETSE ARCHSTR); | |||||
| 625 | // registerLi stener2(WH _MSG_HILIT ESEARCH); | |||||
| 626 | // registerLi stener2(WH _MSG_GETNU MRSLT); | |||||
| 627 | ||||||
| 628 | if ((gbMac&&g bIE4)||(gb SunOS&&gbI E5)||gbOpe ra7) | |||||
| 629 | { | |||||
| 630 | wind ow.onresiz e=window_r esize; | |||||
| 631 | } | |||||
| 632 | el se if(gbIE 4) | |||||
| 633 | { | |||||
| 634 | wind ow.onresiz e=window_r esize2; | |||||
| 635 | } | |||||
| 636 | wi ndow.onloa d=window_O nLoad; | |||||
| 637 | wi ndow.onbef oreunload= window_MyB unload; | |||||
| 638 | wi ndow.onunl oad=window _unload; | |||||
| 639 | gb WhPHost=tr ue; | |||||
| 640 | } | |||||
| 641 | else | |||||
| 642 | do cument.loc ation.relo ad(); | |||||
| 643 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.