--- rat/client/Attic/code.html 2001/06/02 17:19:53 1.33
+++ rat/client/Attic/code.html 2001/06/25 21:43:49 1.36
@@ -15,6 +15,7 @@ March/April 01 Scott Harrison
04/20 Gerd Kortemeyer
04/30 Scott Harrison
05/31 Scott Harrison
+06/11,06/25 Gerd Kortemeyer
-->
@@ -88,6 +89,11 @@ var idxflag=-1; // 1 means currently ope
// -1 means never yet opened/defined
var idxmode='';
+var parm;
+var parmflag=-1; // 1 means currently open
+ // 0 means closed (but has been open)
+ // -1 means never yet opened/defined
+
function testfunction() {
inf.document.forms.resinfo.elements.t.value="ABC";
}
@@ -1306,6 +1312,9 @@ function infoclear() {
if (idxflag==1) {
idxclose();
}
+ if (parmflag==1) {
+ parmclose();
+ }
parent.top.focus();
parent.mapout.focus();
notclear=1;
@@ -1493,6 +1502,12 @@ function srchclear() {
srch.document.clear();
}
+// --------------------------------------------------------- Clears parm window
+
+function parmclear() {
+ parm.document.clear();
+}
+
// ------------------------------------------------------ Closes indexer window
function idxclose() {
@@ -1511,6 +1526,15 @@ function srchclose() {
}
}
+// ------------------------------------------------------- Closes search window
+
+function parmclose() {
+ if (parm && !parm.closed) {
+ parmflag=0;
+ parm.close();
+ }
+}
+
// -------------------------------------------------------- Open indexer window
function idxopen(mode) {
@@ -2387,6 +2411,13 @@ function finishload() {
if (data2[0]=='obj') { obj[data2[1]]=data2[2]; }
if (data2[0]=='objcont') { objcont[data2[1]]=data2[2]; }
if (data2[0]=='objlinks') { objlinks[data2[1]]=data2[2]; }
+ if (data2[0]=='objparms') {
+ if (objparms[data2[1]]==undefined) {
+ objparms[data2[1]]=data2[data2[2]];
+ } else {
+ objparms[data2[1]]+=':'+data2[data2[2]];
+ }
+ }
if (data2[0]=='rowcont') { rowcont[data2[1]]=data2[2]; }
if (data2[0]=='row') { row[data2[1]]=1*data2[2]; }
if (data2[0]=='col') { col[data2[1]]=1*data2[2]; }
@@ -2405,7 +2436,12 @@ function finishload() {
// -------------------------------------------------------------- Parameter set
function setparms(resid) {
- alert('Called setparms for '+resid);
+ var options="scrollbars=1,resizable=1,menubar=0";
+ parmflag=1;
+ data1=objcont[resid].split(':');
+ parm=open("/adm/ratparms?url="+data1[1]+"&parms="+objparms[resid]+
+ "&resid="+resid,"parmout",options);
+ parm.focus();
}
// -------------------------------------------------------------- Undo function