Commit 86c80c4a80d19ed8b350bb27044315de835b1c62
1 parent
b968a9b2
Exists in
master
and in
7 other branches
--no commit message
Showing
9 changed files
with
0 additions
and
505 deletions
Show diff stats
classesjs/jsobjects/jsUI-Global/common.js
... | ... | @@ -1 +0,0 @@ |
1 | -var browser;if(document.all)browser="IE";else browser="MOZ";function replace(oldString, findString, replaceString){stringParts=oldString.split(findString);newString="";for(s=0;s<stringParts.length;s++){newString+=stringParts[s];if(s < stringParts.length-1)newString+=replaceString;}return newString;}function objectEvent(target, eventType, currbrowser){var ieEvent, mozEvent;if(!currbrowser)currbrowser=browser;if(typeof(target)!="object")target=document.getElementById(target);try{if(eventType.indexOf("on")!=-1){ieEvent=eventType;mozEvent=replace(eventType, "on", "");}else{ieEvent="on"+eventType;mozEvent=eventType;}if(currbrowser=="IE"){target.fireEvent(ieEvent);return true;}else{oEvent=document.createEvent("MouseEvents");oEvent.initMouseEvent(mozEvent, true, true, window, 1, 1, 1, 1, 1, false, false, false, false, 0, target);target.dispatchEvent(oEvent);}return true;}catch(ex){return false;}}function getAllDescendants(node, tagName){if(tagName !=null && tagName !="" && tagName !=undefined)tagName=tagName.toUpperCase();else tagName="ALL";if(typeof(node)!="object")node=document.getElementById(node);var objArray=new Array();for(var c=0;c<node.childNodes.length;c++){if(node.childNodes[c].tagName==tagName || tagName=="ALL" && node.childNodes[c].tagName !=undefined){objArray[objArray.length]=node.childNodes[c];}if(node.childNodes[c].childNodes.length > 0){var subChildren=getAllDescendants(node.childNodes[c], tagName);for(var s=0;s<subChildren.length;s++)objArray[objArray.length]=subChildren[s];}}return objArray;}function doNothing(){return false;}function getHost(url){url=url+"";url=url.split("/");return url[2];}function getQueryString(path){var queryString=new Object();if(path==null || path=="" || path==undefined)path=document.location+"";var pathParts=path.split("?");if(pathParts.length > 1){pathParts=pathParts[1].split("&");for(var p=0;p<pathParts.length;p++){var paramParts=pathParts[p].split("=");if(paramParts.length > 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+="</"+nodeType+">";}}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<childArray.length;c++){if(childArray[c].id !=null && childArray[c].id !=""){var tagType;tagType=childArray[c].tagName.toUpperCase();switch(tagType){case "INPUT":{var inputObj=new Object();inputObj.type=childArray[c].type;inputObj.id=childArray[c].id;if(childArray[c].type.toLowerCase()=="checkbox")inputObj.value=childArray[c].checked;else inputObj.value=HTMLEncode(childArray[c].value);if(childArray[c].attributes.getNamedItem("datatype")!=null && childArray[c].attributes.getNamedItem("datatype")!="" && childArray[c].attributes.getNamedItem("datatype")!=undefined)inputObj.datatype=childArray[c].attributes.getNamedItem("datatype").value;eval("dataObj."+childArray[c].id+"=new Object();");eval("dataObj."+childArray[c].id+"=inputObj;");break;}case "SELECT":{var inputObj=new Object();inputObj.type="select";inputObj.id=HTMLEncode(childArray[c].id);inputObj.value=childArray[c].value;eval("dataObj."+childArray[c].id+"=new Object();");eval("dataObj."+childArray[c].id+"=inputObj;");break;}case "TEXTAREA":{var inputObj=new Object();inputObj.type="textarea";inputObj.id=childArray[c].id;inputObj.value=replace(HTMLEncode(childArray[c].value), "\r\n", "&linebreak;");eval("dataObj."+childArray[c].id+"=new Object();");eval("dataObj."+childArray[c].id+"=inputObj;");break;}case "TABLE":{if(childArray[c].className=="GridMain"){var gridName=replace(childArray[c].id, "tbl", "");var data=eval(gridName+".getGridData()");eval("dataObj."+gridName+"=new Object();");eval("dataObj."+gridName+"=data;");}break;}}}}return dataObj;}catch(e){alert(e.message);}}function HTMLEncode(htmldata){htmldata=replace(htmldata, "<", "<");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;} | |
2 | 0 | \ No newline at end of file |
classesjs/jsobjects/jsUI-Global/common_compacto.js
... | ... | @@ -1 +0,0 @@ |
1 | -eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?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;s<S.b;s++){T+=S[s];5(s<S.b-1)T+=1l}d T}j 1z(w,H,U){4 P,X;5(!U)U=R;5(B(w)!="L")w=v.15(w);1k{5(H.1x("16")!=-1){P=H;X=8(H,"16","")}u{P="16"+H;X=H}5(U=="1d"){w.1D(P);d Y}u{14=v.1C("1F");14.1t(X,Y,Y,1q,1,1,1,1,1,J,J,J,J,0,w);w.1s(14)}d Y}1g(1u){d J}}j 17(g,9){5(9!=M&&9!=""&&9!=D)9=9.1o();u 9="1e";5(B(g)!="L")g=v.15(g);4 G=f 1j();I(4 c=0;c<g.t.b;c++){5(g.t[c].9==9||9=="1e"&&g.t[c].9!=D){G[G.b]=g.t[c]}5(g.t[c].t.b>0){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;p<z.b;p++){4 F=z[p].N("=");5(F.b>1){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+="</"+A+">"}}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,{})) |
classesjs/jsobjects/jsUI-Global/common_original.js
... | ... | @@ -1,268 +0,0 @@ |
1 | -var browser; | |
2 | -if (document.all) | |
3 | - browser = "IE"; | |
4 | -else | |
5 | - browser = "MOZ"; | |
6 | - | |
7 | -function replace(oldString, findString, replaceString) | |
8 | -{ | |
9 | - stringParts = oldString.split(findString); | |
10 | - newString = ""; | |
11 | - for (s=0;s<stringParts.length;s++) | |
12 | - { | |
13 | - newString += stringParts[s]; | |
14 | - if (s < stringParts.length - 1) | |
15 | - newString += replaceString; | |
16 | - } | |
17 | - return newString; | |
18 | -} | |
19 | - | |
20 | -function objectEvent(target, eventType, currbrowser) | |
21 | -{ | |
22 | - var ieEvent, mozEvent; | |
23 | - if(!currbrowser) | |
24 | - currbrowser = browser; | |
25 | - if (typeof(target)!="object") | |
26 | - target = document.getElementById(target); | |
27 | - try | |
28 | - { | |
29 | - //standardize event names | |
30 | - if (eventType.indexOf("on") != -1) | |
31 | - { | |
32 | - ieEvent = eventType; | |
33 | - mozEvent = replace(eventType, "on", ""); | |
34 | - } | |
35 | - else | |
36 | - { | |
37 | - ieEvent = "on" + eventType; | |
38 | - mozEvent = eventType; | |
39 | - } | |
40 | - | |
41 | - if (currbrowser == "IE") | |
42 | - { | |
43 | - target.fireEvent(ieEvent); | |
44 | - return true; | |
45 | - } | |
46 | - else | |
47 | - { | |
48 | - oEvent = document.createEvent("MouseEvents"); | |
49 | - oEvent.initMouseEvent( | |
50 | - mozEvent, // the type of mouse event | |
51 | - true, // do you want the event to | |
52 | - // bubble up through the tree? (sure) | |
53 | - true, // can the default action for this | |
54 | - // event, on this element, be cancelled? (yep) | |
55 | - window, // the 'AbstractView' for this event, | |
56 | - // which I took to mean the thing sourcing | |
57 | - // the mouse input. Either way, this is | |
58 | - // the only value I passed that would work | |
59 | - 1, // details -- for 'click' type events, this | |
60 | - // contains the number of clicks. (single click here) | |
61 | - 1, // screenXArg - I just stuck 1 in cos I | |
62 | - // really didn't care | |
63 | - 1, // screenYArg - ditto | |
64 | - 1, // clientXArg - ditto | |
65 | - 1, // clientYArg - ditto | |
66 | - false, // is ctrl key depressed? | |
67 | - false, // is alt key depressed? | |
68 | - false, // is shift key depressed? | |
69 | - false, // is meta key depressed? | |
70 | - 0, // which button is involved? | |
71 | - // I believe that 0 = left, 1 = right, | |
72 | - // 2 = middle | |
73 | - target // the originator of the event | |
74 | - // if you wanted to simulate a child | |
75 | - // element firing the event you'd put | |
76 | - // its handle here, and call this method | |
77 | - // on the parent catcher. In this case, | |
78 | - // they are one and the same. | |
79 | - ); | |
80 | - target.dispatchEvent(oEvent); | |
81 | - } | |
82 | - return true; | |
83 | - } | |
84 | - catch(ex) | |
85 | - { | |
86 | - return false; | |
87 | - } | |
88 | -} | |
89 | - | |
90 | -function getAllDescendants(node, tagName) | |
91 | -{ | |
92 | - if (tagName != null && tagName != "" && tagName != undefined) | |
93 | - tagName = tagName.toUpperCase(); | |
94 | - else | |
95 | - tagName = "ALL"; | |
96 | - | |
97 | - if (typeof(node)!="object") | |
98 | - node = document.getElementById(node); | |
99 | - | |
100 | - var objArray = new Array(); | |
101 | - for(var c=0;c<node.childNodes.length;c++) | |
102 | - { | |
103 | - if (node.childNodes[c].tagName == tagName || tagName == "ALL" && node.childNodes[c].tagName != undefined) | |
104 | - { | |
105 | - objArray[objArray.length] = node.childNodes[c]; | |
106 | - } | |
107 | - if (node.childNodes[c].childNodes.length > 0) | |
108 | - { | |
109 | - var subChildren = getAllDescendants(node.childNodes[c], tagName); | |
110 | - for (var s=0;s<subChildren.length;s++) | |
111 | - objArray[objArray.length] = subChildren[s]; | |
112 | - } | |
113 | - } | |
114 | - return objArray; | |
115 | -} | |
116 | - | |
117 | -function doNothing() | |
118 | -{ | |
119 | - return false; | |
120 | -} | |
121 | - | |
122 | -function getHost(url) | |
123 | -{ | |
124 | - url = url + ""; | |
125 | - url = url.split("/"); | |
126 | - return url[2]; | |
127 | -} | |
128 | - | |
129 | -function getQueryString(path) | |
130 | -{ | |
131 | - var queryString = new Object(); | |
132 | - if (path == null || path == "" || path == undefined) | |
133 | - path = document.location + ""; | |
134 | - var pathParts = path.split("?"); | |
135 | - if (pathParts.length > 1) | |
136 | - { | |
137 | - pathParts = pathParts[1].split("&"); | |
138 | - for (var p=0;p<pathParts.length;p++) | |
139 | - { | |
140 | - var paramParts = pathParts[p].split("="); | |
141 | - if (paramParts.length > 1) | |
142 | - { | |
143 | - paramParts[1] = replace(paramParts[1], "%20", " "); | |
144 | - eval ("queryString." + paramParts[0] + "=\"" + paramParts[1] + "\""); | |
145 | - } | |
146 | - } | |
147 | - } | |
148 | - return queryString; | |
149 | -} | |
150 | - | |
151 | -function serializeObject(currObject) | |
152 | -{ | |
153 | - var XMLString = ""; | |
154 | - for (var i in currObject) | |
155 | - { | |
156 | - var nodeType = typeof(currObject[i]); | |
157 | - if (typeof(currObject[i])!="object") | |
158 | - XMLString += "<" + nodeType + " name=\"" + i + "\" value=\"" + currObject[i] + "\"/>"; | |
159 | - else | |
160 | - { | |
161 | - if (typeof(currObject[i].length)!="undefined") | |
162 | - var nodeType = "array"; | |
163 | - else | |
164 | - var nodeType = "object"; | |
165 | - XMLString += "<" + nodeType + " name=\"" + i + "\">"; | |
166 | - XMLString += serializeObject(currObject[i]); | |
167 | - XMLString += "</" + nodeType+ ">"; | |
168 | - } | |
169 | - } | |
170 | - return XMLString; | |
171 | -} | |
172 | - | |
173 | -function getFormData(startNode) | |
174 | -{ | |
175 | - if (startNode == null || startNode == undefined || startNode == "") | |
176 | - startNode = document.body; | |
177 | - if (typeof(startNode)!="object") | |
178 | - startNode = document.getElementById(startNode); | |
179 | - try | |
180 | - { | |
181 | - var childArray = new Array(); | |
182 | - childArray = getAllDescendants(startNode); | |
183 | - var dataObj = new Object(); | |
184 | - for (var c=0;c<childArray.length;c++) | |
185 | - { | |
186 | - if (childArray[c].id != null && childArray[c].id != "") | |
187 | - { | |
188 | - var tagType; | |
189 | - tagType = childArray[c].tagName.toUpperCase(); | |
190 | - switch(tagType) | |
191 | - { | |
192 | - case "INPUT": | |
193 | - { | |
194 | - var inputObj = new Object(); | |
195 | - inputObj.type = childArray[c].type; | |
196 | - inputObj.id = childArray[c].id; | |
197 | - if (childArray[c].type.toLowerCase() == "checkbox") | |
198 | - inputObj.value = childArray[c].checked; | |
199 | - else | |
200 | - inputObj.value = HTMLEncode(childArray[c].value); | |
201 | - if (childArray[c].attributes.getNamedItem("datatype") != null && childArray[c].attributes.getNamedItem("datatype") != "" && childArray[c].attributes.getNamedItem("datatype") != undefined) | |
202 | - inputObj.datatype = childArray[c].attributes.getNamedItem("datatype").value; | |
203 | - eval("dataObj." + childArray[c].id + "= new Object();"); | |
204 | - eval("dataObj." + childArray[c].id + "= inputObj;"); | |
205 | - break; | |
206 | - } | |
207 | - case "SELECT": | |
208 | - { | |
209 | - var inputObj = new Object(); | |
210 | - inputObj.type = "select"; | |
211 | - inputObj.id = HTMLEncode(childArray[c].id); | |
212 | - //inputObj.value = childArray[c].options[childArray[c].selectedIndex].value; | |
213 | - inputObj.value = childArray[c].value; | |
214 | - eval("dataObj." + childArray[c].id + "= new Object();"); | |
215 | - eval("dataObj." + childArray[c].id + "= inputObj;"); | |
216 | - break; | |
217 | - } | |
218 | - case "TEXTAREA": | |
219 | - { | |
220 | - var inputObj = new Object(); | |
221 | - inputObj.type = "textarea"; | |
222 | - inputObj.id = childArray[c].id; | |
223 | - inputObj.value = replace(HTMLEncode(childArray[c].value), "\r\n", "&linebreak;"); | |
224 | - eval("dataObj." + childArray[c].id + "= new Object();"); | |
225 | - eval("dataObj." + childArray[c].id + "= inputObj;"); | |
226 | - break; | |
227 | - } | |
228 | - case "TABLE": | |
229 | - { | |
230 | - if (childArray[c].className == "GridMain") | |
231 | - { | |
232 | - var gridName = replace(childArray[c].id, "tbl", ""); | |
233 | - var data = eval(gridName + ".getGridData()"); | |
234 | - eval("dataObj." + gridName + "= new Object();"); | |
235 | - eval("dataObj." + gridName + "= data;"); | |
236 | - } | |
237 | - break; | |
238 | - } | |
239 | - } | |
240 | - } | |
241 | - } | |
242 | - return dataObj; | |
243 | - } | |
244 | - catch(e) | |
245 | - { | |
246 | - alert (e.message); | |
247 | - } | |
248 | -} | |
249 | - | |
250 | -function HTMLEncode(htmldata) | |
251 | -{ | |
252 | - htmldata = replace(htmldata, "<", "<"); | |
253 | - htmldata = replace(htmldata, ">", ">"); | |
254 | - //htmldata = replace(htmldata, "\"", "'"); | |
255 | - htmldata = replace(htmldata, "#", "£"); | |
256 | - htmldata = replace(htmldata, "&", "&"); | |
257 | - return htmldata; | |
258 | -} | |
259 | - | |
260 | -function xmlDecode(xmldata) | |
261 | -{ | |
262 | - xmldata = replace(xmldata, "&", "&"); | |
263 | - xmldata = replace(xmldata, "<", "<"); | |
264 | - xmldata = replace(xmldata, ">", ">"); | |
265 | - xmldata = replace(xmldata, "£", "#"); | |
266 | - xmldata = replace(xmldata, "$", "$"); | |
267 | - return xmldata; | |
268 | -} | |
269 | 0 | \ No newline at end of file |
classesjs/jsobjects/jsUI-Global/documentation.xml
... | ... | @@ -1,79 +0,0 @@ |
1 | -<?xml version="1.0"?> | |
2 | -<?xml:stylesheet type="text/xsl" href="../documentation.xsl"?> | |
3 | -<?xml-stylesheet href="../documentation.xsl" type="text/xsl" media="screen"?> | |
4 | -<doc xml:whitespace="preserve"> | |
5 | - <assembly> | |
6 | - <name>jsUI-Global</name> | |
7 | - <remarks> | |
8 | - <para>The global functions include public methods that extend Javascript's abilities, as well as private methods necessary for jsObjects.</para> | |
9 | - <para>The common.js functions can be used without uiCommon.js functions -- but not vice versa.</para> | |
10 | - </remarks> | |
11 | - <requirements> | |
12 | - <para>jsUI-Global/common.js</para> | |
13 | - </requirements> | |
14 | - </assembly> | |
15 | - <Method> | |
16 | - <member name="replace (string, string, string)"> | |
17 | - <summary>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.</summary> | |
18 | - <param name="oldString">Required. String expression containing substring to replace.</param> | |
19 | - <param name="findString">Required. Substring being searched for.</param> | |
20 | - <param name="replaceString">Required. Replacement substring. </param> | |
21 | - <code> | |
22 | - <c>mystring = replace(mystring, "a", "b");</c> | |
23 | - </code> | |
24 | - <returns>The modified string value.</returns> | |
25 | - </member> | |
26 | - <member name="objectEvent (object, string, string)"> | |
27 | - <summary>Creates and fires the specified DOM event on the specified object on the page. Works with both IE and Mozilla.</summary> | |
28 | - <param name="target">Required. The object the event is to be fire on.</param> | |
29 | - <param name="eventType">Required. The text name of the event. Example: click, blur. Accepts both IE and Mozilla event names (blur OR onBlur)</param> | |
30 | - <param name="currbrowser">Optional. The user's current browser. Pass "IE" or "MOZ" or leave blank and the browser will be determined by the function.</param> | |
31 | - <returns>Boolean indicating whether or not the event fired sucessfully.</returns> | |
32 | - </member> | |
33 | - <member name="getAllDescendants(object, string)"> | |
34 | - <summary>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.</summary> | |
35 | - <param name="node">Required. The DOM object to start the search at. Pass document.body to start at the top of the DOM.</param> | |
36 | - <param name="tagName">Optional. The tag name for the type of descendants to find. Pass "ALL" or leave empty to find all descendants regardless of tag name.</param> | |
37 | - <returns>An array of all matching descendant objects.</returns> | |
38 | - </member> | |
39 | - <member name="getHost(string)"> | |
40 | - <summary>Returns only the host name of a given URL. Useful to pre-check links for security issues.</summary> | |
41 | - <param name="url">A fully qualified URL.</param> | |
42 | - <returns>A string containing the host name.</returns> | |
43 | - </member> | |
44 | - <member name="HTMLEncode(string)"> | |
45 | - <summary>Encodes HTML for transmission via XML, replacing tags with their respective entities.</summary> | |
46 | - <param name="htmldata">The HTML to be encoded.</param> | |
47 | - <returns>The encoded string.</returns> | |
48 | - </member> | |
49 | - <member name="getQueryString(string)"> | |
50 | - <summary>Parses a URL to extract query string parameters into a quickly accessible object. Similar to the Request.QueryString method in ASP.</summary> | |
51 | - <param name="path">Optional. The URL to be parsed. If left blank, the current document's location will be used.</param> | |
52 | - <code> | |
53 | - <c>// URL: http://myserver/webapp/sendRequest.htm?requestType=ShowLatestHits</c> | |
54 | - <c>var queryParams = getQueryString(document.location);</c> | |
55 | - <c>alert(queryParams.requestType);</c> | |
56 | - </code> | |
57 | - <returns>An object containing a property for each query string parameter.</returns> | |
58 | - </member> | |
59 | - <member name="serializeObject(object/array)"> | |
60 | - <summary>Turns a Javascript object into valid XML describing that object.</summary> | |
61 | - <param name="currObject">The Javascript Object or Array to be described.</param> | |
62 | - <returns>An XML string describing the Object or Array.</returns> | |
63 | - <remarks>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.</remarks> | |
64 | - </member> | |
65 | - <member name="getFormData(object)"> | |
66 | - <summary>Parses all form elements, and corresponding values, on a page into a nested Javascript object.</summary> | |
67 | - <param name="startNode">Optional. The DOM object to start parsing at. If left blank document.body will be used.</param> | |
68 | - <returns>A nested Object representing all form elements and values on the page.</returns> | |
69 | - <code>alert (serializeObject(getFormData());</code> | |
70 | - <remarks>Can be used in conjunction with serializeObject to allow XML transmission of form data.</remarks> | |
71 | - </member> | |
72 | - <member name="xmlDecode(string)"> | |
73 | - <summary>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.</summary> | |
74 | - <param name="xmldata">The encoded (entity-replaced) XML (or HTML) to be decoded.</param> | |
75 | - <returns>A string.</returns> | |
76 | - <remarks>This is the opposite of the HTMLEncode function.</remarks> | |
77 | - </member> | |
78 | - </Method> | |
79 | -</doc> | |
80 | 0 | \ No newline at end of file |
classesjs/jsobjects/jsUI-Global/none.gif
55 Bytes
classesjs/jsobjects/jsUI-Global/uiCommon.js
... | ... | @@ -1 +0,0 @@ |
1 | -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;} | |
2 | 0 | \ No newline at end of file |
classesjs/jsobjects/jsUI-Global/uiCommon_compacto.js
... | ... | @@ -1 +0,0 @@ |
1 | -eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?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,{})) |
classesjs/jsobjects/jsUI-Global/uiCommon_original.js
... | ... | @@ -1,154 +0,0 @@ |
1 | -window.onclick = jsUIGblRecordClick; | |
2 | -if (window.captureEvents) window.captureEvents(Event.CLICK); | |
3 | - | |
4 | -document.onkeydown = jsUIGblHandleKeys; | |
5 | -if (window.captureEvents) window.captureEvents(Event.KEYPRESS); | |
6 | - | |
7 | -function jsUIGblAddSkin(component, skinName, rootDir) | |
8 | -{ | |
9 | - if (skinName == null || skinName == "") | |
10 | - skinName = "default"; | |
11 | - | |
12 | - var newStyle = document.createElement("link"); | |
13 | - newStyle.rel = "stylesheet"; | |
14 | - newStyle.type = "text/css"; | |
15 | - | |
16 | - if (component == null || component == "") | |
17 | - newStyle.href = rootDir + "/" + skinName + ".css"; | |
18 | - else | |
19 | - newStyle.href = rootDir + "/" + component + "/" + skinName + ".css"; | |
20 | - document.body.appendChild(newStyle); | |
21 | - return true; | |
22 | -} | |
23 | - | |
24 | -//window.attachEvent("onkeypress", "jsUIGblHandleKeys"); | |
25 | -function jsUIGblHandleKeys(e) | |
26 | -{ | |
27 | - var keyCode; | |
28 | - if (browser == "IE") | |
29 | - { | |
30 | - obj = window.event.srcElement; | |
31 | - e = window.event; | |
32 | - keyCode = e.keyCode; | |
33 | - } | |
34 | - if (browser == "MOZ") | |
35 | - { | |
36 | - obj = e.target; | |
37 | - if (e.target.tagName.toUpperCase() == "HTML") | |
38 | - obj = jsUIGblLastClickedElement; | |
39 | - keyCode = e.which; | |
40 | - } | |
41 | - | |
42 | - //check for a grid | |
43 | - var gridAt = ""; | |
44 | - try | |
45 | - { | |
46 | - if (obj.tagName.toUpperCase() == "DIV") | |
47 | - { | |
48 | - if (obj.parentNode.tagName == "TD") | |
49 | - { | |
50 | - if (obj.parentNode.className == "GridCell" || obj.parentNode.className == "GridCellOver") | |
51 | - gridAt = obj.parentNode; | |
52 | - } | |
53 | - } | |
54 | - if (obj.tagName.toUpperCase() == "TD") | |
55 | - { | |
56 | - if (obj.className == "GridCell" || obj.className == "GridTitleCell") | |
57 | - gridAt = obj.parentNode; | |
58 | - } | |
59 | - } | |
60 | - catch(e) | |
61 | - { | |
62 | - | |
63 | - } | |
64 | - | |
65 | - //we're in a grid | |
66 | - if (gridAt != "") | |
67 | - { | |
68 | - var currGrid = GridPvtFindRootObject(gridAt); | |
69 | - if (keyCode==46) //delete | |
70 | - { | |
71 | - currGrid.removeRow(currGrid.currentRow, e); | |
72 | - } | |
73 | - else if (keyCode == 38) //up | |
74 | - currGrid.moveRow(currGrid.currentRow, "up"); | |
75 | - else if (keyCode == 40) //down | |
76 | - currGrid.moveRow(currGrid.currentRow, "down"); | |
77 | - else //all other keys | |
78 | - currGrid.editRow(currGrid.currentRow, e); | |
79 | - } | |
80 | - | |
81 | - //not in a grid | |
82 | - else | |
83 | - { | |
84 | - if (keyCode==13) //return | |
85 | - { | |
86 | - if (obj.tagName.toUpperCase() != "TEXTAREA" && browser == "IE") | |
87 | - e.keyCode=9; | |
88 | - } | |
89 | - if (keyCode==8) //backspace | |
90 | - { | |
91 | - if (obj.tagName.toUpperCase() != "TEXTAREA" && obj.tagName.toUpperCase() != "INPUT") | |
92 | - { | |
93 | - if (browser == "IE") | |
94 | - e.returnValue = false; | |
95 | - if (browser == "MOZ") | |
96 | - { | |
97 | - e.stopPropagation(); | |
98 | - e.preventDefault(); | |
99 | - } | |
100 | - } | |
101 | - } | |
102 | - } | |
103 | - | |
104 | - if (keyCode==116) //F5 | |
105 | - { | |
106 | - if (browser == "IE") | |
107 | - { | |
108 | - e.keyCode = 0; | |
109 | - e.returnValue = false; | |
110 | - } | |
111 | - if (browser == "MOZ") | |
112 | - { | |
113 | - e.stopPropagation(); | |
114 | - e.preventDefault(); | |
115 | - } | |
116 | - try | |
117 | - { | |
118 | - var updateObj = new Object(); | |
119 | - updateObj.sender = "AppCentral"; | |
120 | - updateObj.itemID = "resetPage"; | |
121 | - appcentral.update(updateObj); | |
122 | - } | |
123 | - catch(e) | |
124 | - { | |
125 | - //do nothing | |
126 | - } | |
127 | - return false; | |
128 | - } | |
129 | - | |
130 | - if (e.altKey) | |
131 | - { | |
132 | - if (keyCode>=65 && keyCode<=90) | |
133 | - { | |
134 | - var s = String.fromCharCode(keyCode); | |
135 | - eval('(window.k'+s+')?eval(\'k\'+s+\'.click();\'):eval();'); | |
136 | - } | |
137 | - } | |
138 | -} | |
139 | - | |
140 | -var jsUIGblLastClickedElement; | |
141 | -function jsUIGblRecordClick(e) | |
142 | -{ | |
143 | - //if (browser == "MOZ") | |
144 | - if (browser == "IE") | |
145 | - { | |
146 | - obj = window.event.srcElement; | |
147 | - e = window.event; | |
148 | - } | |
149 | - if (browser == "MOZ") | |
150 | - { | |
151 | - obj = e.target; | |
152 | - } | |
153 | - jsUIGblLastClickedElement = obj.target; | |
154 | -} | |
155 | 0 | \ No newline at end of file |
classesjs/jsobjects/jsUI-Global/vssver.scc
No preview for this file type