Commit 07553161 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor tweaks to set the output area of the archive viewer to be the

right size for the current window.
parent aa2d4e25
...@@ -127,10 +127,14 @@ echo "<b><input type=hidden name=$urlarg value='$urlval'></b>"; ...@@ -127,10 +127,14 @@ echo "<b><input type=hidden name=$urlarg value='$urlval'></b>";
echo "<b><input type=submit name=submit value='Show Tags'></b>"; echo "<b><input type=submit name=submit value='Show Tags'></b>";
echo "</form>"; echo "</form>";
echo "<iframe width=100% height=800 scrolling=yes src='$url' border=2>". echo "<div><iframe src='$url' class='outputframe' ".
"</iframe>\n"; "id='outputframe' name='outputframe'></iframe></div>\n";
echo "</center><br>\n"; echo "</center><br>\n";
echo "<script type='text/javascript' language='javascript'>\n";
echo "SetupOutputArea('outputframe', false);\n";
echo "</script>\n";
# #
# Standard Testbed Footer # Standard Testbed Footer
# #
......
...@@ -106,14 +106,17 @@ function GetMaxHeight(id) { ...@@ -106,14 +106,17 @@ function GetMaxHeight(id) {
return winheight; return winheight;
} }
function SetupOutputArea(id) { function SetupOutputArea(id, clean) {
var Iframe = getObjbyName(id); var Iframe = getObjbyName(id);
var IframeDoc = IframeDocument(id); var IframeDoc = IframeDocument(id);
var winheight = GetMaxHeight(id); var winheight = GetMaxHeight(id);
IframeDoc.open(); if (clean == true) {
IframeDoc.write('<html><head><base href=$BASEPATH/></head><body><pre id=outputarea></pre></body></html>'); IframeDoc.open();
IframeDoc.close(); IframeDoc.write('<html><head><base href=$BASEPATH/></head><body>' +
'<pre id=outputarea></pre></body></html>');
IframeDoc.close();
}
Iframe.style.border = "2px solid"; Iframe.style.border = "2px solid";
Iframe.style.width = "100%"; Iframe.style.width = "100%";
......
...@@ -45,7 +45,7 @@ echo "<div><iframe id='outputframe' ". ...@@ -45,7 +45,7 @@ echo "<div><iframe id='outputframe' ".
"width=100% height=600 scrolling=auto border=4></iframe></div>\n"; "width=100% height=600 scrolling=auto border=4></iframe></div>\n";
echo "<script type='text/javascript' language='javascript'>\n"; echo "<script type='text/javascript' language='javascript'>\n";
echo "SetupOutputArea('outputframe');\n"; echo "SetupOutputArea('outputframe', true);\n";
echo "</script>\n"; echo "</script>\n";
echo "<iframe id='inputframe' name='inputframe' width=0 height=0 echo "<iframe id='inputframe' name='inputframe' width=0 height=0
......
...@@ -127,7 +127,7 @@ function STARTLOG($experiment) ...@@ -127,7 +127,7 @@ function STARTLOG($experiment)
</script>\n"; </script>\n";
echo "<script type='text/javascript' language='javascript'>\n"; echo "<script type='text/javascript' language='javascript'>\n";
echo "SetupOutputArea('outputframe');\n"; echo "SetupOutputArea('outputframe', true);\n";
echo "exp_pid = \"$pid\";\n"; echo "exp_pid = \"$pid\";\n";
echo "exp_eid = \"$eid\";\n"; echo "exp_eid = \"$eid\";\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment