summaryrefslogtreecommitdiff
path: root/includes/js/dojox/dtl/demos/demo_HtmlTemplated.html
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/dtl/demos/demo_HtmlTemplated.html
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadsemanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/dtl/demos/demo_HtmlTemplated.html')
-rw-r--r--includes/js/dojox/dtl/demos/demo_HtmlTemplated.html40
1 files changed, 0 insertions, 40 deletions
diff --git a/includes/js/dojox/dtl/demos/demo_HtmlTemplated.html b/includes/js/dojox/dtl/demos/demo_HtmlTemplated.html
deleted file mode 100644
index 71dabe4..0000000
--- a/includes/js/dojox/dtl/demos/demo_HtmlTemplated.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
- <head>
- <title>Demo using dojox.dtl._HtmlTemplated</title>
- <script type="text/javascript" src="../../../dojo/dojo.js"
- djConfig="isDebug: true, parseOnLoad: true"></script>
- <script type="text/javascript" src="../../../dijit/dijit.js"></script>
- <style type="text/css">
- @import "../../../dijit/themes/tundra/tundra.css";
- </style>
- <script type="text/javascript">
- dojo.require("dojox.dtl._HtmlTemplated");
- dojo.require("dijit.form.Button");
-
- dojo.declare("Fruit", [dijit._Widget, dojox.dtl._HtmlTemplated], {
- widgetsInTemplate: true,
- items: ["apple", "banana", "orange"],
- keyUp: function(e){
- if((e.type == "click" || e.keyCode == dojo.keys.ENTER) && this.input.value){
- console.debug(this.button);
- var i = dojo.indexOf(this.items, this.input.value);
- if(i != -1){
- this.items.splice(i, 1);
- }else{
- this.items.push(this.input.value);
- }
- this.input.value = "";
- this.render();
- }
- },
- // Note, the load tag here is superfluous, since _HtmlTemplate has a dojo.require for it.
- templateString: '<!--{% load dojox.dtl.contrib.dijit %}--><div><input dojoAttachEvent="onkeyup: keyUp" dojoAttachPoint="input"> <button dojoType="dijit.form.Button" dojoAttachPoint="button" dojoAttachEvent="onClick: keyUp">Add/Remove Item</button><ul><!--{% for item in items %}--><li><button dojoType="dijit.form.Button parsed" title="Fruit: {{ item }}"><!--{{ item }}--><script type="dojo/connect" event="onClick" args="e">console.debug("You clicked", this.containerNode.innerHTML);</' + 'script></button></li><!--{% endfor %}--></ul></div>'
- });
-
- dojo.require("dojo.parser");
- </script>
- <body class="tundra">
- <div dojoType="Fruit" id="dtl"></div>
- </body>
- </head>
-</html> \ No newline at end of file