examples/view/domtemplate.html
authorAlan Knowles <alan@akbkhome.com>
Wed, 11 Apr 2012 23:36:08 +0000 (07:36 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 11 Apr 2012 23:36:08 +0000 (07:36 +0800)
examples/view/domtemplate.html

index af2e618..21204e3 100644 (file)
@@ -35,7 +35,10 @@ Roo.onReady(function() {
             }
         ];
     Roo.each(data,  function(r) { tpl.append(Roo.get('body'), r); });
-       
+    
+    Roo.get('template-show').appendChild(document.createTextNode(html)); 
+    Roo.get('javascript-show').appendChild(document.createTextNode(html)); 
+    
 });
      
      
@@ -44,8 +47,11 @@ Roo.onReady(function() {
 </head>
 <body>
     <H1>Dom Template example</H1>
-    <PRE id="javascript-code"></PRE>
-    <PRE id="template-code"></PRE>
+    <h3>Javascript code</h3>
+    <PRE id="javascript-show"></PRE>
+    <h3>Template code</h3>
+
+    <PRE id="template-show"></PRE>
     <div id="body">