![]() |
IT Team - Processed HTML
How it works |
![]() |
Updated Jan. 9, 2001
When an HTML page is requested from the server, if the page ends with .html,
.htm, or .asp (Active Server Pages) it is scanned by the web server for the
inclusion of script information. The IT Team makes available, to
Extension web developers, a library of modules that allow for the
inclusion of common elements, such as the copyright notice. The benefit
of this system is that, when the characteristics of an element change, a
change can be made in one central file and all of the pages that refer to
that module reflect the change.
Each page that uses a set of modules must start with one or more
include statements. The include statements indicate which group of
modules to make accessible from within the page. The pages that describe
the components within a module group will give the include statement that is
needed to make that group available. The include statements will
look like the examples below.
<!-- #include virtual = "/include/form_utils.inc" --> <!-- #include virtual = "/include/gen_utils.inc" --> <!-- #include virtual = "/include/page_parts.inc" -->The include statement(s) must appear as the first line(s) of the html page.
This page opens using this html code, which is a slightly modified form of
the page_parts.inc include above.
<!-- /extension/units/cets/it/using_processed.html #include virtual = "/include/page_parts.inc" --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head>
The third line with the path is something I use to identify the page if it were to be printed out. It is not something you need to use.
It is important to use the same case as that in the example pages.
The names of the modules are case sensitive.
The modules can be used either singly or grouped together within the body
of the HTML page. <% and %> are used to indicate the start and
end of the included modules, respectively. For example, if you
want a centered maroon line that is 66% of the width of the page, you can
use this module:
and it would display on the page like this:<% MaroonLine(66) %>
If the modules are grouped together then you must have a ; (semi-colon) at
the end of each line. For example, if you want a centered maroon line
that is 66% of the width of the page, and then a link back to the previous
page, you can use these modules:
and it would display on the page like this:<% MaroonLine(66); ReferMsg(); %>
This page closes using this html code.
<p> <% NavBar(); ReferMsg(); InfoTechMsg(); Copyright(); %> </p> </body> </html>
URL: http://
www3.extension.umn.edu/units/cets/it/processed/using_processed.html This page was updated Jan. 9, 2001
.
Online Privacy Statement. Contact Information.
University of Minnesota Extension is an equal opportunity
educator and employer.
Copyright © Regents of the University of
Minnesota. All rights reserved.