Produced by Araxis Merge on 1/2/2018 12:00:32 PM 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 17:00:32 2018 UTC | ||
| 2 | HTRE_P2.zip\src.zip\output\ihta_admin.zip\main.zip | xmlreadhelper.js | Thu Aug 4 14:06:30 2016 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 97 |
| 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 | ||||||
| 2 | function X mlReadWrit eHelper() | |||||
| 3 | { | |||||
| 4 | th is.strFile Path = nul l; | |||||
| 5 | ||||||
| 6 | th is.bSuccee d = false; //ou t | |||||
| 7 | ||||||
| 8 | th is.xmlDoc = null; | |||||
| 9 | ||||||
| 10 | th is.xmlHttp = null; | |||||
| 11 | ||||||
| 12 | th is.loadFro mFile = fu nction( bA sync ) | |||||
| 13 | { | |||||
| 14 | this .loadDataX ML( this.s trFilePath , bAsync); | |||||
| 15 | } | |||||
| 16 | ||||||
| 17 | th is.getElem entsByTagN ame = func tion(a_str TagName) | |||||
| 18 | { | |||||
| 19 | retu rn this.xm lDoc.getEl ementsByTa gName(a_st rTagName); | |||||
| 20 | } | |||||
| 21 | ||||||
| 22 | this.g etXmlDoc = function( ) { | |||||
| 23 | if (this.bSu cceed) { | |||||
| 24 | if (!gbI E5 && !gbN av6) | |||||
| 25 | this .xmlDoc = this.xmlHt tp.respons eXML; | |||||
| 26 | return t his.xmlDoc ; | |||||
| 27 | } | |||||
| 28 | re turn null; | |||||
| 29 | } | |||||
| 30 | ||||||
| 31 | th is.loadDat aXML = fun ction (sFi leName, bA sync) | |||||
| 32 | { | |||||
| 33 | try | |||||
| 34 | { | |||||
| 35 | var sCurrentDo cPath=_get Path(docum ent.locati on.href); | |||||
| 36 | var bAsyncReq = true ; | |||||
| 37 | if ( typeof(bAs ync) !='un defined' ) | |||||
| 38 | bAsync Req = bAsy nc ; | |||||
| 39 | sdoc Path=_getF ullPath(sC urrentDocP ath,sFileN ame); | |||||
| 40 | //al ert(sdocPa th); | |||||
| 41 | if(g bIE5) | |||||
| 42 | { | |||||
| 43 | this.x mlDoc=new ActiveXObj ect("Micro soft.XMLDO M"); | |||||
| 44 | this.x mlDoc.asyn c=bAsyncRe q; | |||||
| 45 | this.x mlDoc.load (sdocPath) ; | |||||
| 46 | } | |||||
| 47 | else if(gbNav6 ) | |||||
| 48 | { | |||||
| 49 | var re q=new XMLH ttpRequest (); | |||||
| 50 | req.op en("GET", sdocPath, false); | |||||
| 51 | req.se nd(null); | |||||
| 52 | if (re q.response XML != nul l) | |||||
| 53 | this.xml Doc = req. responseXM L; | |||||
| 54 | else | |||||
| 55 | { | |||||
| 56 | this.onL oadXMLErro r(); | |||||
| 57 | return ; | |||||
| 58 | } | |||||
| 59 | } | |||||
| 60 | else /*if(gbSa fari)*/ | |||||
| 61 | { | |||||
| 62 | if(w indow.XMLH ttpRequest && !(wind ow.ActiveX Object)) | |||||
| 63 | { | |||||
| 64 | this.xmlHt tp = new X MLHttpRequ est(); | |||||
| 65 | if (this.xmlH ttp) | |||||
| 66 | { | |||||
| 67 | th is.xmlHttp .onreadyst atechange= this.onXM LResponse; | |||||
| 68 | this.x mlHttp.ope n("GET", s docPath, f alse); | |||||
| 69 | this.x mlHttp.sen d(null); | |||||
| 70 | } | |||||
| 71 | } | |||||
| 72 | } | |||||
| 73 | this .bSucceed = true; | |||||
| 74 | } | |||||
| 75 | catc h(e) | |||||
| 76 | { | |||||
| 77 | this.o nLoadXMLEr ror(); | |||||
| 78 | } | |||||
| 79 | } | |||||
| 80 | ||||||
| 81 | th is.onXMLRe sponse = f unction() | |||||
| 82 | { | |||||
| 83 | if (this .readyStat e == 4) { | |||||
| 84 | if ( this.respo nseXML == null) | |||||
| 85 | { | |||||
| 86 | this.onLoa dXMLError( ); | |||||
| 87 | } | |||||
| 88 | } | |||||
| 89 | } | |||||
| 90 | ||||||
| 91 | th is.onLoadX MLError = function ( ) | |||||
| 92 | { | |||||
| 93 | //al ert("Canno t read xml file: " + this.strF ilePath); | |||||
| 94 | this .bSucceed = false; | |||||
| 95 | } | |||||
| 96 | ||||||
| 97 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.