Overview
This document is intended to describe the standard layout and design for an MIT web application. It is based on the design currently used by InsideMIT java/struts applications, but it should be adaptable to any MVC style environment. The presentation layer is built from a set of templates described below. This make this documentation framework and language neutral, variables are signified with a "$" character, and included files are encloded in brackets, i.e. [ includeFile ]
Layout
There are two templates uses for page layout:
weblayout_form
weblayout
Each layout template serves as a container for all the components of a given web page, including the doctype declaration, html header, and body sections. Both layouts contain an html form declaration. The weblayout template has a default form action, while the form action in the weblayout_form template is set via javascript.
Header Template
<%-\- TODO: Most of this stuff is boilerplate and probably should be in a different file that doesn't get edited app to app \--%> <title>Oas Skeleton Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="pragma" content="no-cache" /> <link href="/dhtml/css/suit_layout.css" type="text/css" rel="stylesheet" /> <link href="/dhtml/css/insidemit.css" type="text/css" rel="stylesheet" /> <link href="css/app_layout.css" type="text/css" rel="stylesheet" /> <\!--\[if lt IE 8\]> <link href="/dhtml/css/suit_IEfix.css" type="text/css" rel="stylesheet" /> <\!\[endif\]--> <script src="/dhtml/js/dojo.js" type="text/javascript"></script> <script src="/dhtml/js/src/mit/methods.js" type="text/javascript"></script> <script src="/dhtml/js/src/mit/insidemit.js" type="text/javascript"></script> <script src="js/app_specific.js" type="text/javascript"></script> <script type="text/javascript"> function viewHelper() { var currentPage = document.getElementById("pageName").value; switch (currentPage) { case "booey": settingsInit(); default: break; } } </script> <script type="text/javascript"> dojo.require("dojo.mit.*"); dojo.require("dojo.event.*"); dojo.require("dojo.io.*"); dojo.addOnLoad(viewHelper); </script> <script src="js/gotoView.js" type="text/javascript"></script> <script src="js/setValues.js" type="text/javascript"></script>