Commit 07553161 authored by Leigh Stoller's avatar Leigh 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>";
echo "<b><input type=submit name=submit value='Show Tags'></b>";
echo "</form>";
echo "<iframe width=100% height=800 scrolling=yes src='$url' border=2>".
"</iframe>\n";
echo "<div><iframe src='$url' class='outputframe' ".
"id='outputframe' name='outputframe'></iframe></div>\n";
echo "</center><br>\n";
echo "<script type='text/javascript' language='javascript'>\n";
echo "SetupOutputArea('outputframe', false);\n";
echo "</script>\n";
#
# Standard Testbed Footer
#
......
......@@ -106,14 +106,17 @@ function GetMaxHeight(id) {
return winheight;
}
function SetupOutputArea(id) {
function SetupOutputArea(id, clean) {
var Iframe = getObjbyName(id);
var IframeDoc = IframeDocument(id);
var winheight = GetMaxHeight(id);
IframeDoc.open();
IframeDoc.write('<html><head><base href=$BASEPATH/></head><body><pre id=outputarea></pre></body></html>');
IframeDoc.close();
if (clean == true) {
IframeDoc.open();
IframeDoc.write('<html><head><base href=$BASEPATH/></head><body>' +
'<pre id=outputarea></pre></body></html>');
IframeDoc.close();
}
Iframe.style.border = "2px solid";
Iframe.style.width = "100%";
......
......@@ -45,7 +45,7 @@ echo "<div><iframe id='outputframe' ".
"width=100% height=600 scrolling=auto border=4></iframe></div>\n";
echo "<script type='text/javascript' language='javascript'>\n";
echo "SetupOutputArea('outputframe');\n";
echo "SetupOutputArea('outputframe', true);\n";
echo "</script>\n";
echo "<iframe id='inputframe' name='inputframe' width=0 height=0
......
......@@ -127,7 +127,7 @@ function STARTLOG($experiment)
</script>\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_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