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