0

I'm trying to serve HTML from a web server made in MS-DOS that is capable of processing one web request at a time.

I made some HTML in which two iframes must be loaded. I use iframes because frameset is depreciated.

I do this because I want a panel on the side for common menu options, and a large panel for the main screen.

The problem is the last panel does not load even though the correct file is requested. In fact, the web server does not even acknowledge the last panel request, but I was hoping each item would load one at a time.

To clear some confusion, I included my index.htm code:

<!DOCTYPE HTML>
<html><head><title>Test</title>
<base target="f2">
<style type="text/css">
BODY,#hdr,#f3{background:#000000;color:#FFFFFF}
#hdr,#f1,#f2,#f3{position:absolute;padding:0;margin:0;border:0}
#f1,#f2{height:79%}
#f3,#hdr{width:100%;left:0;display:block}
#hdr{top:0;height:9%;text-align:center}
#f1{top:10%;left:0;width:24%}
#f2{top:10%;left:25%;width:74%}
#f3{top:90%;left:0;height:10%}
FORM{text-align:center;margin:0.5em;float:right}
INPUT{font-size:1.2em;font-weight:bold}
</style>
</head>
<body>
<H1 ID="hdr">Big title</H1>
<!-- First pane is huge list of 50+ clickable commands which does not fit on one screen -->
<iframe ID="f1" src="cmds.htm"></iframe>
<!-- Second pane is main screen that changes depending on command clicked -->
<iframe ID="f2" src="screen.htm"></iframe>
<div ID="f3">
<form action="hwrun.exe"><input type="submit" value="Run All"></form>
<form action="hwclear.exe"><input type="submit" value="Clear All"></form>
</div>
</body>
</html>

In this example, screen.htm doesn't load and when I tried it in firefox, it shows its own page telling me it cannot connect to the server.

Is there a way I can solve this without the need to hack the MS-DOS server, and without the need of Javascript and without having to expect the user to constantly scroll to get the wanted command?

  • Without javascript... doubtful. Maybe try loading screen.htm as an iframe in cmds.htm instead. Bear in mind that nested iframes is NOT supported by W3C and I have no idea if it works with your design. Any other possible solution I can think of requires javascript. – Trickytree22 Aug 22 at 11:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.