blob: 2937a5cc3e6f62ced882fde743838d3118a07181 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<html>
<head><title>Address Book Using Jstemplates</title>
<script src="../util.js" type="text/javascript"></script>
<script src="../jsevalcontext.js" type="text/javascript"></script>
<script src="../jstemplate.js" type="text/javascript"></script>
<script type="text/javascript">
function jsinit() {
var mydata = {dataProperty:'Nonny'};
var context = new JsEvalContext(mydata);
context.setVariable('declaredVar','Ho');
var template = document.getElementById('witha');
jstProcess(context, template);
}
</script>
<link rel="stylesheet" type="text/css" href="css/maps2.deb.css"/>
</head>
<body onload="jsinit()">
<div id="witha">
<div id="Hey" jscontent="this.parentNode.id + this.id + dataProperty +
$this.dataProperty + declaredVar"></div>
</div>
</body>
</html>
|