summaryrefslogtreecommitdiff
path: root/includes/js/dojox/widget/tests/test_TimeSpinner.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/widget/tests/test_TimeSpinner.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/widget/tests/test_TimeSpinner.html')
-rw-r--r--includes/js/dojox/widget/tests/test_TimeSpinner.html87
1 files changed, 0 insertions, 87 deletions
diff --git a/includes/js/dojox/widget/tests/test_TimeSpinner.html b/includes/js/dojox/widget/tests/test_TimeSpinner.html
deleted file mode 100644
index 6009f6d..0000000
--- a/includes/js/dojox/widget/tests/test_TimeSpinner.html
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
- <head>
- <title>Dojo Spinner Widget Test</title>
-
- <style type="text/css">
- @import "../../../dojo/resources/dojo.css";
- @import "../../../dijit/themes/tundra/tundra.css";
- @import "../../../dijit/themes/dijit.css";
- @import "../../../dijit/tests/css/dijitTests.css";
- </style>
-
- <script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug:true, parseOnLoad: true"></script>
-
- <script type="text/javascript">
- dojo.require("dojox.widget.TimeSpinner");
- dojo.require("dojo.parser"); // scan page for widgets
-
- function displayData() {
- var spinner = dijit.byId("timeSpinner");
-
- //accessing the widget property directly
- console.log("TimeSpinner Value (raw, unserialized): ", spinner.getValue());
-
- //accessing the widget from the form elements
- var theForm = dojo.byId("form1");
- var s = "";
- for (var i=0; i<theForm.elements.length;i++){
- var elem = theForm.elements[i];
- if (!elem.name || elem.name =="button") { continue ; }
- s+=elem.name + ": " + elem.value + "\n";
- }
- console.log(s);
-
- }
-
- </script>
- <style type="text/css">
- #integerspinner2 .dojoSpinnerUpArrow {
- border-bottom-color: blue;
- }
- #integerspinner2 .dojoSpinnerDownArrow {
- border-top-color: red;
- }
- #integerspinner2 .dojoSpinnerButton {
- background-color: yellow;
- }
- #integerspinner2 .dojoSpinnerButtonPushed {
- background-color: gray;
- }
- #integerspinner2 .dojoSpinnerButtonPushed .dojoSpinnerDownArrow {
- border-top-color: blue;
- }
- #integerspinner2 .dojoSpinnerButtonPushed .dojoSpinnerUpArrow {
- border-bottom-color: red;
- }
-
- .dojoInputFieldValidationNormal#integerspinner2 {
- color:blue;
- background-color:pink;
- }
- </style>
- </head>
-
- <body class="tundra">
- <h1 class="testTitle">Dojox TimeSpinner Test</h1>
- Try typing values, and use the up/down arrow keys and/or the arrow push
- buttons to spin
- <br>
- <form id="form1" action="" name="example" method="post">
- <h1>time spinner</h1>
- <br>
- <input id="timeSpinner" dojoType="dojox.widget.TimeSpinner"
- onChange="console.debug('onChange fired for widget id = ' + this.id + ' with value = ' + arguments[0]);"
- value="12:30 PM"
- name="timeSpinner"
- hours="12"
- id="timeSpinner" />
- </form>
-
- <div>
- <button name="button" onclick="displayData(); return false;">view data</button>
- </div>
-
- </body>
-</html>