They all refer to my style of working only (apart from other professional skills you can read about in my profile I have developed large documentation and data analysis suites [WAMP, LAMP, MAMP] for handling special types of medical documentation), but if you find yourself in a similar timely condition, this situation may be similar to your own mindset:
Obstacle #1: Ready-made solutions for the implementation of grids such as Bootstrap or Flexbox can be done as well, but using their CSS and JS files often needs a lot of individual adaptation if you want to have sizes, shapes, and colours your way.
Obstacle #2: I personally prefer to experiment in a small, easy to conceive setting before embedding my solution into a bigger structure such as Bootstrap and Flexbox (and possibly others, too).
Obstacle #3: I simply do not have the time to sit in front of the screen for hours and hours to check out some layout stuff when I dearly need to get data analyses and evaluations done.
Thus, after experimenting with WampServer on my localhost, I have found the following solution:
<?php
// Same lots of definitions and introductory stuff, again not relevant here
?>
<!DOCTYPE html>
<html lang="whatever">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?= strtolower($CHARSET) ?>" />
<meta name="date" content="<?= date('r', filectime($_SERVER['SCRIPT_FILENAME'])) ?>" />
<title><?= $sCompanyName ?></title>
</head>
<div>
<iframe style="top:0px; width:100%; height:40px; border:2px red; background-color:grey; display:block; position:fixed;" id="headerTitle" name="headerTitle" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" src="frameHeader.php" /></iframe>
</div>
<div>
<iframe style="top:40px; width:100%; height:120px; border:2px red; background-color:grey; display:block; position:fixed;" id="frameMenu" name="frameMenu" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" src="frameMenu.php" /></iframe>
</div>
<?php
if (isset($_REQUEST['sBody']) && $_REQUEST['sBody'] == 'login')
echo '<iframe name="frameBody" src="login.php' . $sLanguageString . '">';
else {
?>
<div style="float:left;">
<iframe style="top:160px; width:225px; height:100%; border:2px blue; background-color:grey; display:inline-block; position:fixed;" id="userMenu" name="userMenu" scrolling="yes" frameborder="1" marginheight="0px" marginwidth="0px" src="userMenu.php" /></iframe>
</div>
<div>
<iframe style="top:160px; left:225px; width:100%; height:100%; border:2px blue; background-color:lightgrey; display:inline-block; position:fixed;" id="frameBody" name="frameBody" scrolling="yes" frameborder="1" marginheight="0px" marginwidth="0px" src="<?= $sBody . (strlen($sURLParameterString) > 1 ? $sURLParameterString : '') ?>" allowfullscreen /></iframe>
</div>
<div style="float:right;">
<iframe style="top:160px; right:0px; width:225px; height:100%; border:2px blue; background-color:grey; display:inline-block; position:fixed;" id="patientMenu" name="patientMenu" scrolling="yes" frameborder="1" marginheight="0px" marginwidth="0px" src="patientMenu.php" /></iframe>
</div>
<div>
<iframe style="bottom:0px; width:100%; height:40px; border:2px red; background-color:grey; display:block; position:fixed;" id="footerTitle" name="footerTitle" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" src="frameFooter - Kopie.php" /></iframe>
</div>
<?php
}
?>
</html>
Please mind that, of course, it is a good if not essential step to cast thestyle="whatever"
statements into an external CSS file, but this is not necessary here to show you what I mean.
It is important not to change thename="something"
statements from frames to iframes as they are needed for the referral of, for instance, a menu link referring to the above-mentioned code withframeBody
(see there):
[... preceding code ...]
<li><a target="frameBody" href="dothis.php">Do this</a></li>
<li><a target="frameBody" href="dothat.php">Do that</a></li>
<li><a target="frameBody" href="dosomethingcompletelydifferent.php">Do something completely different</a></li>
[... further code ...]
Theallowfullscreen
is just an optional element in case one of these iframes should be made fullscreen using an appropriate javascript code (not supplied here).
And, finally, the change of both<!DOCTYPE ...>
and<html ...>
corresponds to being able to make use of HTML 5 instead of the older HTML 4 declaration which had to refer to a DTD (Document Type Definition).
I hope this bit of code helps in a generic way to root from HTML framesets to HTML iframes on the way to a frameless solution as next possible step.
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.
PHP (from the English Hypertext Preprocessor - hypertext preprocessor) is a scripting programming language for developing web applications. Supported by most hosting providers, it is one of the most popular tools for creating dynamic websites.
The PHP scripting language has gained wide popularity due to its processing speed, simplicity, cross-platform, functionality and distribution of source codes under its own license.
https://www.php.net/
JavaScript is a multi-paradigm language that supports event-driven, functional, and mandatory (including object-oriented and prototype-based) programming types. Originally JavaScript was only used on the client side. JavaScript is now still used as a server-side programming language. To summarize, we can say that JavaScript is the language of the Internet.
https://www.javascript.com/
CSS (Cascading Style Sheets) is a formal language for describing the appearance of a document written using a markup language.
It is mainly used as a means of describing, decorating the appearance of web pages written using HTML and XHTML markup languages, but can also be applied to any XML documents, such as SVG or XUL.
https://www.w3.org/TR/CSS/#css
Bootstrap is not exclusively a CSS framework, but its most popular features are CSS-centric. These include a powerful grid, icons, buttons, map components, navigation bars, and more.
https://getbootstrap.com/
HTML (English "hyper text markup language" - hypertext markup language) is a special markup language that is used to create sites on the Internet.
Browsers understand html perfectly and can interpret it in an understandable way. In general, any page on the site is html-code, which the browser translates into a user-friendly form. By the way, the code of any page is available to everyone.
https://www.w3.org/html/
Welcome to the Q&A site for web developers. Here you can ask a question about the problem you are facing and get answers from other experts. We have created a user-friendly interface so that you can quickly and free of charge ask a question about a web programming problem. We also invite other experts to join our community and help other members who ask questions. In addition, you can use our search for questions with a solution.
Ask about the real problem you are facing. Describe in detail what you are doing and what you want to achieve.
Our goal is to create a strong community in which everyone will support each other. If you find a question and know the answer to it, help others with your knowledge.