aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dijit/bench/test_Button-programmatic.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/dijit/bench/test_Button-programmatic.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/dijit/bench/test_Button-programmatic.html')
-rw-r--r--includes/js/dijit/bench/test_Button-programmatic.html75
1 files changed, 0 insertions, 75 deletions
diff --git a/includes/js/dijit/bench/test_Button-programmatic.html b/includes/js/dijit/bench/test_Button-programmatic.html
deleted file mode 100644
index a9d0cd1..0000000
--- a/includes/js/dijit/bench/test_Button-programmatic.html
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
- <head>
- <title>PROGRAMMATIC - Dojo Button 100 Test</title>
- <script type="text/javascript" src="../../dojo/dojo.js" XdjConfig='isDebug: true, debugAtAllCosts: true'></script>
- <script type="text/javascript">
- dojo.require("dijit.form.Button");
- dojo.require("dojo.parser");
- logMessage = window.alert;
- </script>
-
-<style>
-
- @import "../themes/tundra/tundra.css";
-
- /* group multiple buttons in a row */
- .box {
- display: block;
- text-align: center;
- }
- .box .dojoButton {
- width:80px;
- margin-right: 10px;
- }
- .dojoButtonContents {
- font-size: 1.6em;
- }
-
- #buttonContainer {
- border:1px solid black;
- width:100%;
- }
-
- #results {
- color:darkred;
- }
-
-</style>
- </head>
-<body class=tundra>
-<h2>Creating dojot.form.buttons programmatically</h2>
-<h3 id="results"></h3>
-
-<div id="buttonContainer" class='box'></div>
-
-<br>
-Pass "?count=<i><b>n</b></i>" in the query string to change the number of buttons.
-
-<script type="text/javascript">
-// See if we can make a widget in script and attach it to the DOM ourselves.
-
-function makeEm() {
- var queryCount = location.search.match(/count=(\d*)/);
- var count = (queryCount ? parseInt(queryCount[1]) : 100);
- var container = dojo.byId("buttonContainer");
- var t0 = new Date().getTime();
- for (var i = 1; i <= count; i++) {
- var it =
- new dijit.form.Button(
- {label:"Button "+i, onclick:'logMessage("clicked simple")'}
- );
- container.appendChild(it.domNode);
- it.domNode.style.display = '';
- }
- var t1 = new Date().getTime();
- dojo.byId("results").innerHTML = "It took " + (t1 - t0) + " msec to create " + count + " Buttons programmatically.";
-}
-dojo.addOnLoad(makeEm);
-
-
-</script>
-
-</body>
-</html>