This article introduces a different concept of the view engine - a client-side view engine that renders a view in a client browser. In this concept, the model and the controller are still on the server-side. However, instead of the HTML, JSON is generated as an output from the server-side, it is accepted on the client-side, and HTML is generated using the JavaScript templating engine.
|
* {
margin: 0;
padding: 0;
}
body {
font-size: 62.5%;
font-family: Helvetica, sans-serif;
background: url(images/stripe.png) repeat;
}
p {
font-size: 1.3em;
margin-bottom: 15px;
}
#page-wrap {
width: 660px;
background: white;
padding: 20px 50px 50px 50px;
margin: 20px auto;
min-height: 15000px;
height: auto !important;
height: 10500px;
}
#contact-area {
width: 600px;
margin-top: 25px;
}
#contact-area>span{ width:600px;}
#contact-area input, #contact-area textarea {
padding: 5px;
width: 471px;
font-family: Helvetica, sans-serif;
font-size: 1.4em;
margin: 0px 0px 10px 0px;
border: 2px solid #ccc;
}
#contact-area textarea {
height: 90px;
}
#contact-area textarea:focus, #contact-area input:focus {
border: 2px solid #900;
}
#contact-area input.submit-button {
width: 100px;
float: right;
}
label, span {
float: left;
text-align: right;
margin-right: 15px;
width: 100px;
padding-top: 5px;
font-size: 1.4em;
}
#contact-area input[type="radio"], #contact-area input[type="checkbox"] { width:5px }
li span {float:none; margin-right:0px}
span.FirstName, span.LastName {font-size:1em;}
/*span.Manager {float:left}*/
dt {margin-left: 10px}
dt, dd {display:inline-table; border-bottom-style:solid; border-bottom-width:thin; width:80px}
span.employees-title{ width: 20px; background-image: url('images/details_open.png'); }
span.open{ width: 20px; background-image: url('images/details_close.png'); }
li { margin-bottom:10px;}
.divEmployees { display:inline; float:right; clear:both}
.divEmployees h3{margin:auto; text-align:right}
ol li{ border-bottom: medium solid;
clear: left;
float: left;
margin-bottom: 10px;
padding-bottom: 5px;
width: 600px;}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Graduated from Faculty of Electrical Engineering, Department of Computer Techniques and Informatics, University of Belgrade, Serbia.
Currently working in Microsoft as Program Manager on SQL Server product.
Member of JQuery community - created few popular plugins (four popular JQuery DataTables add-ins and loadJSON template engine).
Interests: Web and databases, Software engineering process(estimation and standardization), mobile and business intelligence platforms.