Şuanki Dizin: /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/plugins/jsgrid/demos/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/plugins/jsgrid/demos/validation.html |
<!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>jsGrid - Validation</title> <link rel="stylesheet" type="text/css" href="demos.css" /> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,600,400' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="../css/jsgrid.css" /> <link rel="stylesheet" type="text/css" href="../css/theme.css" /> <script src="../external/jquery/jquery-1.8.3.js"></script> <script src="db.js"></script> <script src="../src/jsgrid.core.js"></script> <script src="../src/jsgrid.load-indicator.js"></script> <script src="../src/jsgrid.load-strategies.js"></script> <script src="../src/jsgrid.sort-strategies.js"></script> <script src="../src/jsgrid.validation.js"></script> <script src="../src/jsgrid.field.js"></script> <script src="../src/fields/jsgrid.field.text.js"></script> <script src="../src/fields/jsgrid.field.number.js"></script> <script src="../src/fields/jsgrid.field.select.js"></script> <script src="../src/fields/jsgrid.field.checkbox.js"></script> <script src="../src/fields/jsgrid.field.control.js"></script> </head> <body> <h1>Validation</h1> <div id="jsGrid"></div> <script> $(function() { $("#jsGrid").jsGrid({ height: "70%", width: "100%", filtering: true, editing: true, inserting: true, sorting: true, paging: true, autoload: true, pageSize: 15, pageButtonCount: 5, deleteConfirm: "Do you really want to delete the client?", controller: db, fields: [ { name: "Name", type: "text", width: 150, validate: "required" }, { name: "Age", type: "number", width: 50, validate: { validator: "range", param: [18,80] } }, { name: "Address", type: "text", width: 200, validate: { validator: "rangeLength", param: [10, 250] } }, { name: "Country", type: "select", items: db.countries, valueField: "Id", textField: "Name", validate: { message: "Country should be specified", validator: function(value) { return value > 0; } } }, { name: "Married", type: "checkbox", title: "Is Married", sorting: false }, { type: "control" } ] }); }); </script> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4