diff --git a/classesjs/jsobjects/jsUI-Global/common.js b/classesjs/jsobjects/jsUI-Global/common.js deleted file mode 100644 index aad68c7..0000000 --- a/classesjs/jsobjects/jsUI-Global/common.js +++ /dev/null @@ -1 +0,0 @@ -var browser;if(document.all)browser="IE";else browser="MOZ";function replace(oldString, findString, replaceString){stringParts=oldString.split(findString);newString="";for(s=0;s 0){var subChildren=getAllDescendants(node.childNodes[c], tagName);for(var s=0;s 1){pathParts=pathParts[1].split("&");for(var p=0;p 1){paramParts[1]=replace(paramParts[1], "%20", " ");eval("queryString."+paramParts[0]+"=\""+paramParts[1]+"\"");}}}return queryString;}function serializeObject(currObject){var XMLString="";for(var i in currObject){var nodeType=typeof(currObject[i]);if(typeof(currObject[i])!="object")XMLString+="<"+nodeType+" name=\""+i+"\" value=\""+currObject[i]+"\"/>";else{if(typeof(currObject[i].length)!="undefined")var nodeType="array";else var nodeType="object";XMLString+="<"+nodeType+" name=\""+i+"\">";XMLString+=serializeObject(currObject[i]);XMLString+="";}}return XMLString;}function getFormData(startNode){if(startNode==null || startNode==undefined || startNode=="")startNode=document.body;if(typeof(startNode)!="object")startNode=document.getElementById(startNode);try{var childArray=new Array();childArray=getAllDescendants(startNode);var dataObj=new Object();for(var c=0;c", ">");htmldata=replace(htmldata, "#", "£");htmldata=replace(htmldata, "&", "&");return htmldata;}function xmlDecode(xmldata){xmldata=replace(xmldata, "&", "&");xmldata=replace(xmldata, "<", "<");xmldata=replace(xmldata, ">", ">");xmldata=replace(xmldata, "£", "#");xmldata=replace(xmldata, "$", "$");return xmldata;} \ No newline at end of file diff --git a/classesjs/jsobjects/jsUI-Global/common_compacto.js b/classesjs/jsobjects/jsUI-Global/common_compacto.js deleted file mode 100644 index f9542b5..0000000 --- a/classesjs/jsobjects/jsUI-Global/common_compacto.js +++ /dev/null @@ -1 +0,0 @@ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('4 R;5(v.1v)R="1d";u R="1B";j 8(1n,1m,1l){S=1n.N(1m);T="";I(s=0;s0){4 12=17(g.t[c],9);I(4 s=0;s<12.b;s++)G[G.b]=12[s]}}d G}j 1S(){d J}j 1W(E){E=E+"";E=E.N("/");d E[2]}j 1X(y){4 13=f m();5(y==M||y==""||y==D)y=v.21+"";4 z=y.N("?");5(z.b>1){z=z[1].N("&");I(4 p=0;p1){F[1]=8(F[1],"%20"," ");k("13."+F[0]+"=\\""+F[1]+"\\"")}}}d 13}j 1b(x){4 C="";I(4 i 1O x){4 A=B(x[i]);5(B(x[i])!="L")C+="<"+A+" 1i=\\""+i+"\\" q=\\""+x[i]+"\\"/>";u{5(B(x[i].b)!="D")4 A="1N";u 4 A="L";C+="<"+A+" 1i=\\""+i+"\\">";C+=1b(x[i]);C+=""}}d C}j 1I(o){5(o==M||o==D||o=="")o=v.1J;5(B(o)!="L")o=v.15(o);1k{4 3=f 1j();3=17(o);4 h=f m();I(4 c=0;c<3.b;c++){5(3[c].7!=M&&3[c].7!=""){4 18;18=3[c].9.1o();1U(18){Z"1V":{4 6=f m();6.K=3[c].K;6.7=3[c].7;5(3[c].K.1Y()=="1K")6.q=3[c].1H;u 6.q=Q(3[c].q);5(3[c].10.V("O")!=M&&3[c].10.V("O")!=""&&3[c].10.V("O")!=D)6.O=3[c].10.V("O").q;k("h."+3[c].7+"=f m();");k("h."+3[c].7+"=6;");W}Z"1L":{4 6=f m();6.K="1Q";6.7=Q(3[c].7);6.q=3[c].q;k("h."+3[c].7+"=f m();");k("h."+3[c].7+"=6;");W}Z"1P":{4 6=f m();6.K="1M";6.7=3[c].7;6.q=8(Q(3[c].q),"\\r\\n","&1R;");k("h."+3[c].7+"=f m();");k("h."+3[c].7+"=6;");W}Z"1Z":{5(3[c].1G=="1T"){4 11=8(3[c].7,"1A","");4 1f=k(11+".1r()");k("h."+11+"=f m();");k("h."+11+"=1f;")}W}}}}d h}1g(e){1p(e.1w)}}j Q(l){l=8(l,"<","&1a;");l=8(l,">","&1c;");l=8(l,"#","h;");l=8(l,"&","&19;");d l}j 1E(a){a=8(a,"&19;","&");a=8(a,"&1a;","<");a=8(a,"&1c;",">");a=8(a,"h;","#");a=8(a,"y;","$");d a}',62,126,'|||childArray|var|if|inputObj|id|replace|tagName|xmldata|length||return||new|node|dataObj||function|eval|htmldata|Object||startNode||value|||childNodes|else|document|target|currObject|path|pathParts|nodeType|typeof|XMLString|undefined|url|paramParts|objArray|eventType|for|false|type|object|null|split|datatype|ieEvent|HTMLEncode|browser|stringParts|newString|currbrowser|getNamedItem|break|mozEvent|true|case|attributes|gridName|subChildren|queryString|oEvent|getElementById|on|getAllDescendants|tagType|amp|lt|serializeObject|gt|IE|ALL|data|catch|163|name|Array|try|replaceString|findString|oldString|toUpperCase|alert|window|getGridData|dispatchEvent|initMouseEvent|ex|all|message|indexOf|x0024|objectEvent|tbl|MOZ|createEvent|fireEvent|xmlDecode|MouseEvents|className|checked|getFormData|body|checkbox|SELECT|textarea|array|in|TEXTAREA|select|linebreak|doNothing|GridMain|switch|INPUT|getHost|getQueryString|toLowerCase|TABLE||location'.split('|'),0,{})) diff --git a/classesjs/jsobjects/jsUI-Global/common_original.js b/classesjs/jsobjects/jsUI-Global/common_original.js deleted file mode 100644 index 0445a93..0000000 --- a/classesjs/jsobjects/jsUI-Global/common_original.js +++ /dev/null @@ -1,268 +0,0 @@ -var browser; -if (document.all) - browser = "IE"; -else - browser = "MOZ"; - -function replace(oldString, findString, replaceString) -{ - stringParts = oldString.split(findString); - newString = ""; - for (s=0;s 0) - { - var subChildren = getAllDescendants(node.childNodes[c], tagName); - for (var s=0;s 1) - { - pathParts = pathParts[1].split("&"); - for (var p=0;p 1) - { - paramParts[1] = replace(paramParts[1], "%20", " "); - eval ("queryString." + paramParts[0] + "=\"" + paramParts[1] + "\""); - } - } - } - return queryString; -} - -function serializeObject(currObject) -{ - var XMLString = ""; - for (var i in currObject) - { - var nodeType = typeof(currObject[i]); - if (typeof(currObject[i])!="object") - XMLString += "<" + nodeType + " name=\"" + i + "\" value=\"" + currObject[i] + "\"/>"; - else - { - if (typeof(currObject[i].length)!="undefined") - var nodeType = "array"; - else - var nodeType = "object"; - XMLString += "<" + nodeType + " name=\"" + i + "\">"; - XMLString += serializeObject(currObject[i]); - XMLString += ""; - } - } - return XMLString; -} - -function getFormData(startNode) -{ - if (startNode == null || startNode == undefined || startNode == "") - startNode = document.body; - if (typeof(startNode)!="object") - startNode = document.getElementById(startNode); - try - { - var childArray = new Array(); - childArray = getAllDescendants(startNode); - var dataObj = new Object(); - for (var c=0;c", ">"); - //htmldata = replace(htmldata, "\"", "'"); - htmldata = replace(htmldata, "#", "£"); - htmldata = replace(htmldata, "&", "&"); - return htmldata; -} - -function xmlDecode(xmldata) -{ - xmldata = replace(xmldata, "&", "&"); - xmldata = replace(xmldata, "<", "<"); - xmldata = replace(xmldata, ">", ">"); - xmldata = replace(xmldata, "£", "#"); - xmldata = replace(xmldata, "$", "$"); - return xmldata; -} \ No newline at end of file diff --git a/classesjs/jsobjects/jsUI-Global/documentation.xml b/classesjs/jsobjects/jsUI-Global/documentation.xml deleted file mode 100644 index be74c20..0000000 --- a/classesjs/jsobjects/jsUI-Global/documentation.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - jsUI-Global - - The global functions include public methods that extend Javascript's abilities, as well as private methods necessary for jsObjects. - The common.js functions can be used without uiCommon.js functions -- but not vice versa. - - - jsUI-Global/common.js - - - - - Returns a string in which a specified substring has been replaced with another substring. Easier to use then the Javascript replace method of the string type. - Required. String expression containing substring to replace. - Required. Substring being searched for. - Required. Replacement substring. - - mystring = replace(mystring, "a", "b"); - - The modified string value. - - - Creates and fires the specified DOM event on the specified object on the page. Works with both IE and Mozilla. - Required. The object the event is to be fire on. - Required. The text name of the event. Example: click, blur. Accepts both IE and Mozilla event names (blur OR onBlur) - Optional. The user's current browser. Pass "IE" or "MOZ" or leave blank and the browser will be determined by the function. - Boolean indicating whether or not the event fired sucessfully. - - - Returns an array of descendants (children, grandchildren, etc) for a given DOM object, of a specified type. Similar to IE's "document.all" but cross-browser compatible. - Required. The DOM object to start the search at. Pass document.body to start at the top of the DOM. - Optional. The tag name for the type of descendants to find. Pass "ALL" or leave empty to find all descendants regardless of tag name. - An array of all matching descendant objects. - - - Returns only the host name of a given URL. Useful to pre-check links for security issues. - A fully qualified URL. - A string containing the host name. - - - Encodes HTML for transmission via XML, replacing tags with their respective entities. - The HTML to be encoded. - The encoded string. - - - Parses a URL to extract query string parameters into a quickly accessible object. Similar to the Request.QueryString method in ASP. - Optional. The URL to be parsed. If left blank, the current document's location will be used. - - // URL: http://myserver/webapp/sendRequest.htm?requestType=ShowLatestHits - var queryParams = getQueryString(document.location); - alert(queryParams.requestType); - - An object containing a property for each query string parameter. - - - Turns a Javascript object into valid XML describing that object. - The Javascript Object or Array to be described. - An XML string describing the Object or Array. - Warning. Do not use this function on a DOM object, as those objects appear to be recursive in some way, and will cause this function to loop continuously. Use only on pure Javascript Objects or Arrays. - - - Parses all form elements, and corresponding values, on a page into a nested Javascript object. - Optional. The DOM object to start parsing at. If left blank document.body will be used. - A nested Object representing all form elements and values on the page. - alert (serializeObject(getFormData()); - Can be used in conjunction with serializeObject to allow XML transmission of form data. - - - Decodes XML (or HTML) that has been encoded by having it's tags changed to entities for transmission as an XML node value. Restores encoded data. - The encoded (entity-replaced) XML (or HTML) to be decoded. - A string. - This is the opposite of the HTMLEncode function. - - - \ No newline at end of file diff --git a/classesjs/jsobjects/jsUI-Global/none.gif b/classesjs/jsobjects/jsUI-Global/none.gif deleted file mode 100644 index 1fa6d01..0000000 Binary files a/classesjs/jsobjects/jsUI-Global/none.gif and /dev/null differ diff --git a/classesjs/jsobjects/jsUI-Global/uiCommon.js b/classesjs/jsobjects/jsUI-Global/uiCommon.js deleted file mode 100644 index 9443bce..0000000 --- a/classesjs/jsobjects/jsUI-Global/uiCommon.js +++ /dev/null @@ -1 +0,0 @@ -window.onclick=jsUIGblRecordClick;if(window.captureEvents)window.captureEvents(Event.CLICK);document.onkeydown=jsUIGblHandleKeys;if(window.captureEvents)window.captureEvents(Event.KEYPRESS);function jsUIGblAddSkin(component, skinName, rootDir){if(skinName==null || skinName=="")skinName="default";var newStyle=document.createElement("link");newStyle.rel="stylesheet";newStyle.type="text/css";if(component==null || component=="")newStyle.href=rootDir+"/"+skinName+".css";else newStyle.href=rootDir+"/"+component+"/"+skinName+".css";document.body.appendChild(newStyle);return true;}function jsUIGblHandleKeys(e){var keyCode;if(browser=="IE"){obj=window.event.srcElement;e=window.event;keyCode=e.keyCode;}if(browser=="MOZ"){obj=e.target;if(e.target.tagName.toUpperCase()=="HTML")obj=jsUIGblLastClickedElement;keyCode=e.which;}var gridAt="";try{if(obj.tagName.toUpperCase()=="DIV"){if(obj.parentNode.tagName=="TD"){if(obj.parentNode.className=="GridCell" || obj.parentNode.className=="GridCellOver")gridAt=obj.parentNode;}}if(obj.tagName.toUpperCase()=="TD"){if(obj.className=="GridCell" || obj.className=="GridTitleCell")gridAt=obj.parentNode;}}catch(e){}if(gridAt !=""){var currGrid=GridPvtFindRootObject(gridAt);if(keyCode==46){currGrid.removeRow(currGrid.currentRow, e);}else if(keyCode==38)currGrid.moveRow(currGrid.currentRow, "up");else if(keyCode==40)currGrid.moveRow(currGrid.currentRow, "down");else currGrid.editRow(currGrid.currentRow, e);}else{if(keyCode==13){if(obj.tagName.toUpperCase()!="TEXTAREA" && browser=="IE")e.keyCode=9;}if(keyCode==8){if(obj.tagName.toUpperCase()!="TEXTAREA" && obj.tagName.toUpperCase()!="INPUT"){if(browser=="IE")e.returnValue=false;if(browser=="MOZ"){e.stopPropagation();e.preventDefault();}}}}if(keyCode==116){if(browser=="IE"){e.keyCode=0;e.returnValue=false;}if(browser=="MOZ"){e.stopPropagation();e.preventDefault();}try{var updateObj=new Object();updateObj.sender="AppCentral";updateObj.itemID="resetPage";appcentral.update(updateObj);}catch(e){}return false;}if(e.altKey){if(keyCode>=65 && keyCode<=90){var s=String.fromCharCode(keyCode);eval('(window.k'+s+')?eval(\'k\'+s+\'.click();\'):eval();');}}}var jsUIGblLastClickedElement;function jsUIGblRecordClick(e){if(browser=="IE"){obj=window.event.srcElement;e=window.event;}if(browser=="MOZ"){obj=e.target;}jsUIGblLastClickedElement=obj.target;} \ No newline at end of file diff --git a/classesjs/jsobjects/jsUI-Global/uiCommon_compacto.js b/classesjs/jsobjects/jsUI-Global/uiCommon_compacto.js deleted file mode 100644 index 3887ed6..0000000 --- a/classesjs/jsobjects/jsUI-Global/uiCommon_compacto.js +++ /dev/null @@ -1 +0,0 @@ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('4.1t=I;1(4.l)4.l(H.1w);v.1v=C;1(4.l)4.l(H.1u);u 1l(j,d,y){1(d==M||d=="")d="S";7 b=v.R("12");b.14="11";b.X="Y/t";1(j==M||j=="")b.N=y+"/"+d+".t";f b.N=y+"/"+j+"/"+d+".t";v.Z.10(b);J W}u C(e){7 3;1(5=="i"){2=4.m.B;e=4.m;3=e.3}1(5=="r"){2=e.q;1(e.q.a.c()=="15")2=w;3=e.U}7 g="";P{1(2.a.c()=="Q"){1(2.h.a=="E"){1(2.h.p=="D"||2.h.p=="V")g=2.h}}1(2.a.c()=="E"){1(2.p=="D"||2.p=="T")g=2.h}}K(e){}1(g!=""){7 6=1y(g);1(3==1p){6.1o(6.o,e)}f 1(3==1m)6.F(6.o,"1n");f 1(3==16)6.F(6.o,"1s");f 6.1x(6.o,e)}f{1(3==13){1(2.a.c()!="A"&&5=="i")e.3=9}1(3==8){1(2.a.c()!="A"&&2.a.c()!="1b"){1(5=="i")e.G=z;1(5=="r"){e.L();e.O()}}}}1(3==1c){1(5=="i"){e.3=0;e.G=z}1(5=="r"){e.L();e.O()}P{7 n=19 17();n.18="1d";n.1e="1j";1i.1h(n)}K(e){}J z}1(e.1g){1(3>=1r&&3<=1f){7 s=1a.1k(3);x(\'(4.k\'+s+\')?x(\\\'k\\\'+s+\\\'.1q();\\\'):x();\')}}}7 w;u I(e){1(5=="i"){2=4.m.B;e=4.m}1(5=="r"){2=e.q}w=2.q}',62,97,'|if|obj|keyCode|window|browser|currGrid|var|||tagName|newStyle|toUpperCase|skinName||else|gridAt|parentNode|IE|component||captureEvents|event|updateObj|currentRow|className|target|MOZ||css|function|document|jsUIGblLastClickedElement|eval|rootDir|false|TEXTAREA|srcElement|jsUIGblHandleKeys|GridCell|TD|moveRow|returnValue|Event|jsUIGblRecordClick|return|catch|stopPropagation|null|href|preventDefault|try|DIV|createElement|default|GridTitleCell|which|GridCellOver|true|type|text|body|appendChild|stylesheet|link||rel|HTML|40|Object|sender|new|String|INPUT|116|AppCentral|itemID|90|altKey|update|appcentral|resetPage|fromCharCode|jsUIGblAddSkin|38|up|removeRow|46|click|65|down|onclick|KEYPRESS|onkeydown|CLICK|editRow|GridPvtFindRootObject'.split('|'),0,{})) diff --git a/classesjs/jsobjects/jsUI-Global/uiCommon_original.js b/classesjs/jsobjects/jsUI-Global/uiCommon_original.js deleted file mode 100644 index 1a0f76e..0000000 --- a/classesjs/jsobjects/jsUI-Global/uiCommon_original.js +++ /dev/null @@ -1,154 +0,0 @@ -window.onclick = jsUIGblRecordClick; -if (window.captureEvents) window.captureEvents(Event.CLICK); - -document.onkeydown = jsUIGblHandleKeys; -if (window.captureEvents) window.captureEvents(Event.KEYPRESS); - -function jsUIGblAddSkin(component, skinName, rootDir) -{ - if (skinName == null || skinName == "") - skinName = "default"; - - var newStyle = document.createElement("link"); - newStyle.rel = "stylesheet"; - newStyle.type = "text/css"; - - if (component == null || component == "") - newStyle.href = rootDir + "/" + skinName + ".css"; - else - newStyle.href = rootDir + "/" + component + "/" + skinName + ".css"; - document.body.appendChild(newStyle); - return true; -} - -//window.attachEvent("onkeypress", "jsUIGblHandleKeys"); -function jsUIGblHandleKeys(e) -{ - var keyCode; - if (browser == "IE") - { - obj = window.event.srcElement; - e = window.event; - keyCode = e.keyCode; - } - if (browser == "MOZ") - { - obj = e.target; - if (e.target.tagName.toUpperCase() == "HTML") - obj = jsUIGblLastClickedElement; - keyCode = e.which; - } - - //check for a grid - var gridAt = ""; - try - { - if (obj.tagName.toUpperCase() == "DIV") - { - if (obj.parentNode.tagName == "TD") - { - if (obj.parentNode.className == "GridCell" || obj.parentNode.className == "GridCellOver") - gridAt = obj.parentNode; - } - } - if (obj.tagName.toUpperCase() == "TD") - { - if (obj.className == "GridCell" || obj.className == "GridTitleCell") - gridAt = obj.parentNode; - } - } - catch(e) - { - - } - - //we're in a grid - if (gridAt != "") - { - var currGrid = GridPvtFindRootObject(gridAt); - if (keyCode==46) //delete - { - currGrid.removeRow(currGrid.currentRow, e); - } - else if (keyCode == 38) //up - currGrid.moveRow(currGrid.currentRow, "up"); - else if (keyCode == 40) //down - currGrid.moveRow(currGrid.currentRow, "down"); - else //all other keys - currGrid.editRow(currGrid.currentRow, e); - } - - //not in a grid - else - { - if (keyCode==13) //return - { - if (obj.tagName.toUpperCase() != "TEXTAREA" && browser == "IE") - e.keyCode=9; - } - if (keyCode==8) //backspace - { - if (obj.tagName.toUpperCase() != "TEXTAREA" && obj.tagName.toUpperCase() != "INPUT") - { - if (browser == "IE") - e.returnValue = false; - if (browser == "MOZ") - { - e.stopPropagation(); - e.preventDefault(); - } - } - } - } - - if (keyCode==116) //F5 - { - if (browser == "IE") - { - e.keyCode = 0; - e.returnValue = false; - } - if (browser == "MOZ") - { - e.stopPropagation(); - e.preventDefault(); - } - try - { - var updateObj = new Object(); - updateObj.sender = "AppCentral"; - updateObj.itemID = "resetPage"; - appcentral.update(updateObj); - } - catch(e) - { - //do nothing - } - return false; - } - - if (e.altKey) - { - if (keyCode>=65 && keyCode<=90) - { - var s = String.fromCharCode(keyCode); - eval('(window.k'+s+')?eval(\'k\'+s+\'.click();\'):eval();'); - } - } -} - -var jsUIGblLastClickedElement; -function jsUIGblRecordClick(e) -{ - //if (browser == "MOZ") - if (browser == "IE") - { - obj = window.event.srcElement; - e = window.event; - } - if (browser == "MOZ") - { - obj = e.target; - } - jsUIGblLastClickedElement = obj.target; -} \ No newline at end of file diff --git a/classesjs/jsobjects/jsUI-Global/vssver.scc b/classesjs/jsobjects/jsUI-Global/vssver.scc deleted file mode 100644 index 4bddcac..0000000 Binary files a/classesjs/jsobjects/jsUI-Global/vssver.scc and /dev/null differ -- libgit2 0.21.2