From e44a7e37b6c7b5961adaffc62b9042b8d442938e Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 13 Nov 2008 09:49:11 +0000 Subject: New feature: basic Ajax suggestion for tags and implementation of Dojo toolkit git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f --- includes/js/dijit/tests/form/test_validate.html | 428 ++++++++++++++++++++++++ 1 file changed, 428 insertions(+) create mode 100644 includes/js/dijit/tests/form/test_validate.html (limited to 'includes/js/dijit/tests/form/test_validate.html') diff --git a/includes/js/dijit/tests/form/test_validate.html b/includes/js/dijit/tests/form/test_validate.html new file mode 100644 index 0000000..f6d1cde --- /dev/null +++ b/includes/js/dijit/tests/form/test_validate.html @@ -0,0 +1,428 @@ + + + + Test TextBox Validation Widgets + + + + + + + + + + +

Dijit Validation Widgets

+ +
+ +
+ + TextBox class, tabIndex=2, Attributes: {trim: true, propercase: true, style: 'width:700px'}, First letter of each word is upper case. +
+
+ +
onChange: +
+ +
+ + TextBox class, Attributes: {trim: true, uppercase: true, class: 'verylong'}, all letters converted to upper case. +
+
+ +
+ +
+ + NumberTextBox class, tabIndex=1, Attributes: {trim: true}, no initial value specified, tooltipPosition=[above, below] +
+
+ +
+ +
+ + ValidationTextBox class, + Attributes: {lowercase: true, required: true, class: verylong, style: font-size: 15pt;}. Displays a prompt message if field is missing. +
+
+ +
+ +
+ + IntegerTextBox class, + Attributes: {required: true, min:-20000, max:+20000 }, Enter feet above sea level with a sign. +
+
+ + onChange: +
+ + + +
+ + CurrencyTextBox class, + Attributes: {fractional: true}. Enter whole and cents. Currency symbol is optional. +
+ +
+ USD +  onChange: +
+ +
+ euro currency (local format) fractional part is optional: + EUR + + + +
+ + +
+ euro currency (fixed lang: de-de) programmatically created, fractional part is optional: EUR +
+ + + + +
+ + RegexpTextBox class, + Attributes: {required: true} +
+
+ +
+ +
+ + (just a test that type attribute is obeyed) +
+
+ +
+ +
+ + value: null should show up as empty +
+
+ +
+ + + +
+ + a test that readOnly is understood +
+
+ + + +
+ + + +
+ + +
+ +
+

Tooltip positioning

+

+ These buttons switch the positions searched to try to place the validation error tooltips. + Note that setting tooltip positioning to "above" or "below" is dangerous if + you have a node with a dropdown, but the drop down might overlap the tooltip. +

+ + + + -- cgit v1.2.3