× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



There is not such directive in HTML.

What is traditionally is done on the web app development, is to split the header, body and footer.

If you are using PHP for instance, in your main script 'account.php' you have to do something like:
<?php

...myStuffGoesHere;

Include('header.template.php');
Include('account_view.template.php');
Include('footer.template.php');
?>

'header.template.php' could be something like:
<html>
<head>
<title>Show and hide Dialog example</title>
<style type="text/css">
... your styles here ..
</style>
<link rel="stylesheet" type="text/css" href="file.css">

<script type="text/javascript" src="file.js">
</script>
<script >
more javascript here
</script>
</head>

<body class="soria">


'Footer.template.php' could be:
</body>
</html>


And 'account_view.template.php' should have whatever you'll show, like a web form or whatever you'll have:
<form action="Login" method="post" validate="true" id="loginForm">
<table width="258">
<tr>
<td><label>Login</label></td>
<td><input type="text" value="" name="login" id="userId"/></td>
</tr>
</table>
</form>

Out of curiosity... what is the language that you are using to create your web app?

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of GKern@xxxxxxxxxxxxxxxx
Sent: Wednesday, June 09, 2010 9:55 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Copybooks for HTML?

Is there a way to utilize what we know as RPG copybooks in HTML?

We have a standard 'header' that we want to put in all of our web pages
and want to only have it coded in one place. Would this be an include
directive?

Thanks!

Regards, Jerry

Gerald Kern - Information Technology
Programming Supervisor
IBM Certified RPG IV Developer
Lotus Notes/Domino 8.0.1 Administrator
The Toledo Clinic, Inc.
4235 Secor Road
Toledo, OH 43623
Phone 419-479-5535
gkern@xxxxxxxxxxxxxxxx


This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please inform the
sender by reply e-mail and destroy this and all copies of this message.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.