--- rat/client/Attic/code.html 2001/03/05 08:30:31 1.15 +++ rat/client/Attic/code.html 2001/03/15 14:48:44 1.23 @@ -72,6 +72,11 @@ var data4=new Array(1024); var data5=new Array(1024); var inf; +var srch; + +function testfunction() { + inf.document.forms.resinfo.elements.t.value="ABC"; +} // ------------------------------------------------ Insert a row into the table @@ -1281,7 +1286,9 @@ function infoclear() { } inf.document.writeln(''); inf.document.close(); - parent.focus(); + srchclose(); + + parent.top.focus(); parent.mapout.focus(); notclear=1; lastinfo=''; @@ -1374,7 +1381,7 @@ function info(infostr) { } inf.document.writeln(''); inf.document.close(); - parent.focus(); + parent.top.focus(); parent.mapout.focus(); notclear=0; lastinfo=infostr; @@ -1453,6 +1460,46 @@ function insertcondlink(cid,lnr) { joinres(nobj,tobj,0); } + + + +// ------------------------------------------------------- Clears search window + +function srchclear() { + srch.document.clear(); +} + +// ------------------------------------------------------- Closes search window + +function srchclose() { + if (!srch.closed) { + srch.close(); + } +} + +// --------------------------------------------------------- Open search window + +function srchopen() { + var options="scrollbars=1,resizable=1,menubar=0"; + srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); + srch.focus(); +} + +// -------------------------------------------- Interface function to searching + +function search() { + alert("Searching not yet implemented"); +} + +// ------------------------------------------------------- Do srch status check + +function srchcheck() { + if (!srch || srch.closed) { + srchopen(); + } + srch.focus(); +} + // ---------------------------------------------------- Handles "click to edit" function handler(infostr) { @@ -1540,16 +1587,16 @@ function handler(infostr) { } } inf.document.write( - '
Title:' + ''); if ((data2[3]!='start') && (data2[3]!='finish')) { - inf.document.write('' +'' - +'' + +''); } inf.document.writeln( - '
Title:' +'
URL:' + inf.document.write('
URL:' +'
External:
' + inf.document.write('>Search
' +'