Produced by Araxis Merge on 5/9/2017 12:03:03 PM Eastern Daylight 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 May 9 16:03:03 2017 UTC | ||
| 2 | OSCIF_HEC_v1.4_Sprint23_build4_Apr_2017.zip\CRM_solutions\Managed\North52BPA_1_0_0_506_managed_2013_2015_2016..zip\WebResources | north52_javascriptnorth52htmlwebresourcehelper00B405DF-B449-E111-A977-00155DF5B00D | Mon Sep 19 18:20:18 2016 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 179 |
| 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 | if (typeof (N52) == "undefined ") | |||||
| 2 | { N52 = {} ; } | |||||
| 3 | ||||||
| 4 | N52.HTMLWe bResourceH elper = | |||||
| 5 | { | |||||
| 6 | ||||||
| 7 | ||||||
| 8 | GetDataPar ameterArra y: functi on (data) { | |||||
| 9 | var vals = new Arr ay(); | |||||
| 10 | var clea ndata = de codeURICom ponent(dat a); | |||||
| 11 | cleandat a = cleand ata .repla ce("{","") ; | |||||
| 12 | cleandat a = cleand ata .repla ce("}","") ; | |||||
| 13 | ||||||
| 14 | ||||||
| 15 | vals = c leandata.s plit("&"); | |||||
| 16 | for (var x in vals ) | |||||
| 17 | { | |||||
| 18 | vals [x] = val s[x].repla ce(/\+/g, " ").split ("="); | |||||
| 19 | vals [x][1] = vals[x][1] .indexOf(' ^^^') > 0 ? vals[x][ 1].replace ('^^^', '& ') : vals[ x][1] ; | |||||
| 20 | } | |||||
| 21 | ||||||
| 22 | return va ls; | |||||
| 23 | }, | |||||
| 24 | ||||||
| 25 | GetParamet erByName: function (name) { | |||||
| 26 | ||||||
| 27 | name = n ame.replac e(/[\[]/, "\\\[").re place(/[\] ]/, "\\\]" ); | |||||
| 28 | var rege xS = "[\\? &]" + name + "=([^&# ]*)"; | |||||
| 29 | var rege x = new Re gExp(regex S); | |||||
| 30 | var resu lts = rege x.exec(win dow.locati on.search) ; | |||||
| 31 | if(resul ts == null ) | |||||
| 32 | return ""; | |||||
| 33 | else | |||||
| 34 | { | |||||
| 35 | var re sult = dec odeURIComp onent(resu lts[1].rep lace(/\+/g , " ")); | |||||
| 36 | return result; | |||||
| 37 | } | |||||
| 38 | }, | |||||
| 39 | ||||||
| 40 | CheckDupl icates: fu nction (op tionset, f ormNames) | |||||
| 41 | { | |||||
| 42 | va r duplicat eFormName = false; | |||||
| 43 | va r optAlpha = documen t.createEl ement("opt ion"); | |||||
| 44 | va r optBeta = document .createEle ment("opti on"); | |||||
| 45 | ||||||
| 46 | op tAlpha.tex t = "Dupli cate form names exis t,"; | |||||
| 47 | op tAlpha.val ue = "Dupl icate form names exi st,"; | |||||
| 48 | op tAlpha.tit le = "Dupl icate form names exi st,"; | |||||
| 49 | op tBeta.text = "please change."; | |||||
| 50 | op tBeta.valu e = "pleas e change." ; | |||||
| 51 | op tBeta.titl e = "pleas e change." ; | |||||
| 52 | ||||||
| 53 | f ormNames.s ort(); | |||||
| 54 | ||||||
| 55 | v ar last = formNames[ 0]; | |||||
| 56 | f or (var i= 1; i < for mNames.len gth; i++) | |||||
| 57 | { | |||||
| 58 | if (for mNames[i] == last) d uplicateFo rmName = t rue; | |||||
| 59 | ||||||
| 60 | last = formNames[ i]; | |||||
| 61 | } | |||||
| 62 | ||||||
| 63 | i f (duplica teFormName == true) | |||||
| 64 | { | |||||
| 65 | documen t.getEleme ntById(opt ionset).op tions.leng th = 0; | |||||
| 66 | documen t.getEleme ntById(opt ionset).op tions.add( optAlpha); | |||||
| 67 | documen t.getEleme ntById(opt ionset).op tions.add( optBeta); | |||||
| 68 | } | |||||
| 69 | ||||||
| 70 | re turn dupli cateFormNa me; | |||||
| 71 | ||||||
| 72 | }, | |||||
| 73 | ||||||
| 74 | InsertOpt ionSetItem : function (optionse t, name, v alue) | |||||
| 75 | { | |||||
| 76 | var itemExist s = false; | |||||
| 77 | if (optionse t == 'sour ceentity') | |||||
| 78 | { | |||||
| 79 | $("#" + optionset + " option ").each(fu nction() { | |||||
| 80 | if ($(th is).val() == $.trim( value)) | |||||
| 81 | itemExists = true; | |||||
| 82 | }); | |||||
| 83 | } | |||||
| 84 | ||||||
| 85 | if (itemExist s == true) return; | |||||
| 86 | ||||||
| 87 | ||||||
| 88 | va r opt = do cument.cre ateElement ("option") ; | |||||
| 89 | op t.text = n ame; | |||||
| 90 | op t.value = value; | |||||
| 91 | op t.title = name; | |||||
| 92 | ||||||
| 93 | do cument.get ElementByI d(optionse t).options .add(opt); | |||||
| 94 | }, | |||||
| 95 | ||||||
| 96 | InsertOpti onSetItemA tTop: func tion (opti onset, nam e, value) | |||||
| 97 | { | |||||
| 98 | ||||||
| 99 | var i temExists = false; | |||||
| 100 | if (optionse t == 'sour ceentity') | |||||
| 101 | { | |||||
| 102 | $("#" + optionset + " option ").each(fu nction() { | |||||
| 103 | if ($(th is).val() == $.trim( value)) | |||||
| 104 | itemExists = true; | |||||
| 105 | }); | |||||
| 106 | } | |||||
| 107 | ||||||
| 108 | if (itemExist s == true) return; | |||||
| 109 | ||||||
| 110 | va r opt = do cument.cre ateElement ("option") ; | |||||
| 111 | op t.value = value; | |||||
| 112 | op t.title = name; | |||||
| 113 | op t.appendCh ild(docume nt.createT extNode(na me)); | |||||
| 114 | ||||||
| 115 | va r optionSe tElement = document. getElement ById(optio nset); | |||||
| 116 | ||||||
| 117 | op tionSetEle ment.inser tBefore(op t, optionS etElement. firstChild ); | |||||
| 118 | ||||||
| 119 | }, | |||||
| 120 | ||||||
| 121 | GetXmlNode s: functio n (xml, xp ath) | |||||
| 122 | { | |||||
| 123 | ||||||
| 124 | var a ttributes = []; | |||||
| 125 | ||||||
| 126 | if ( xml.implem entation.h asFeature( "XPath", " 3.0") ) | |||||
| 127 | { | |||||
| 128 | var items = xml.eva luate(xpat h, xml, nu ll, XPathR esult.ORDE RED_NODE_S NAPSHOT_TY PE, null); | |||||
| 129 | ||||||
| 130 | for (var i = 0; i < items.sn apshotLeng th; i++) | |||||
| 131 | { | |||||
| 132 | attri butes[i] = items.sna pshotItem( i); | |||||
| 133 | } | |||||
| 134 | ||||||
| 135 | } | |||||
| 136 | else | |||||
| 137 | { | |||||
| 138 | attribut es = xml.s electNodes (xpath); | |||||
| 139 | } | |||||
| 140 | ||||||
| 141 | retu rn attribu tes; | |||||
| 142 | }, | |||||
| 143 | ||||||
| 144 | IsActiveXS upported: function ( ) | |||||
| 145 | { | |||||
| 146 | try { new windo w.ActiveXO bject("Mic rosoft.XML DOM"); ret urn true;} catch(e) {return fa lse;} | |||||
| 147 | }, | |||||
| 148 | ||||||
| 149 | ||||||
| 150 | GetXmlDocu ment: func tion (quer y) | |||||
| 151 | { | |||||
| 152 | var par seXml; | |||||
| 153 | ||||||
| 154 | if ( N52 .HTMLWebRe sourceHelp er.IsActiv eXSupporte d() == tru e) | |||||
| 155 | { | |||||
| 156 | parseX ml = funct ion(xmlStr ) { | |||||
| 157 | var xm lDoc = new window.Ac tiveXObjec t("Microso ft.XMLDOM" ); | |||||
| 158 | xmlDoc .async = " false"; | |||||
| 159 | xmlDoc .loadXML(x mlStr); | |||||
| 160 | return xmlDoc; | |||||
| 161 | }; | |||||
| 162 | } | |||||
| 163 | else if (typeof w indow.DOMP arser != " undefined" ) | |||||
| 164 | { | |||||
| 165 | p arseXml = function(x mlStr) { | |||||
| 166 | r eturn ( ne w window.D OMParser() ).parseFr omString(x mlStr, "te xt/xml"); | |||||
| 167 | }; | |||||
| 168 | } | |||||
| 169 | else { | |||||
| 170 | throw new Error("Nor th52: No X ML parser found"); | |||||
| 171 | } | |||||
| 172 | ||||||
| 173 | var xml = parseXm l(query); | |||||
| 174 | ||||||
| 175 | return xml; | |||||
| 176 | } | |||||
| 177 | ||||||
| 178 | ||||||
| 179 | }; //end t op |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.