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