summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/tests/CompareValidator.html
diff options
context:
space:
mode:
authorwei <>2006-01-09 03:40:59 +0000
committerwei <>2006-01-09 03:40:59 +0000
commit9c9a2d731fea9679f65904a3a6b72dd78b4253a4 (patch)
tree1d81a12a7a79e74e98218d01c6278a81f0996f5d /framework/Web/Javascripts/tests/CompareValidator.html
parent10420d2bcde1a7437b58175f417170b2d6d93e50 (diff)
Update library
Diffstat (limited to 'framework/Web/Javascripts/tests/CompareValidator.html')
-rw-r--r--framework/Web/Javascripts/tests/CompareValidator.html95
1 files changed, 0 insertions, 95 deletions
diff --git a/framework/Web/Javascripts/tests/CompareValidator.html b/framework/Web/Javascripts/tests/CompareValidator.html
deleted file mode 100644
index 1a41fd11..00000000
--- a/framework/Web/Javascripts/tests/CompareValidator.html
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
- <meta http-equiv="Content-Style-Type" content="text/css" />
- <title>Prado Client-Side CompareValidator Tests</title>
-<!-- base files -->
-<script type="text/javascript" src="../../base.js"></script>
-<script type="text/javascript" src="../../dom.js"></script>
-<script type="text/javascript" src="../prado/validation.js"></script>
-<script type="text/javascript" src="../prado/validators.js"></script>
-<style type="text/css">
-/*<![CDATA[*/
-
- .message
- {
- color: red;
- }
- .required, .required1, .required2
- {
- border: 1px solid red;
- }
-/*]]>*/
-</style>
- </head>
-
- <body>
- <h1>Prado Client-Side CompareValidator Tests</h1>
-
-<form id="form1" action="#">
-
-<!-- group 1 -->
-<div>
- <div>
- <input type="text" id="text1" name="text1" />
- <input type="text" id="text2" name="text2" />
- <span id="validator1" class="message" style="display:none">Must match</span>
- </div>
-
- <div>
- <input type="text" id="text3" name="text3" />
- <span id="validator2" class="message" style="display:none">Must equal "me!"</span>
- </div>
-
- <div>
- <input type="text" id="text4" name="text4" />
- <span id="validator3" class="message" style="display:none">Must be a date (d/m/Y)</span>
- </div>
- <input type="submit" value="Test" id="submit1" />
-</div>
- <script type="text/javascript">
- <!--
- /*]]>*/
- if(typeof(Prado) != "undefined" && typeof(Prado.Validation) != "undefined")
- {
- Prado.Validation.AddForm("form1");
-
- var val1 = {id : "validator1",
- controltovalidate : "text1",
- errormessage : "*",
- display : "Dynamic",
- controlcssclass : "required",
- controlhookup : "text2"};
- new Prado.Validation(Prado.Validation.TCompareValidator, val1);
-
- var val1 = {id : "validator2",
- controltovalidate : "text3",
- errormessage : "*",
- display : "Dynamic",
- controlcssclass : "required",
- valuetocompare : "me!"};
- new Prado.Validation(Prado.Validation.TCompareValidator, val1);
-
- var val1 = {id : "validator3",
- controltovalidate : "text4",
- errormessage : "*",
- display : "Dynamic",
- controlcssclass : "required",
- operator : "DataTypeCheck",
- type : "Date",
- dateformat : "%d/%m/%Y"};
- new Prado.Validation(Prado.Validation.TCompareValidator, val1);
-
- Prado.Validation.AddTarget("submit1");
- }
-
- /*]]>*/
- //-->
- </script>
-</form>
-
- </body>
-</html>
-