Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Simple Form Validation</title>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery-validate/jquery.validate.min.js"></script>
<script type="text/javascript">
SubmittingForm=function() {
alert("The form has been validated.");
YAHOO.util.Event.onDOMReady(function() {
YAHOO.namespace("techdocs"); // create namespace for Insert dialog
// Build Add a New Task pop up dialog
// Instantiate the Add a New Task pop up dialog
YAHOO.techdocs.dlgAddTask = new YAHOO.widget.Dialog("dlgAddTask",
{ fixedcenter : true, visible : false, constraintoviewport : true, close: false,
buttons : [ { text:"Submit", handler:function() {this.submit();}, isDefault:true },
{ text:"Cancel", handler:function() {this.cancel();} } ]
YAHOO.util.Event.onDOMReady(function() {
YAHOO.namespace("techdocs"); // create namespace for Insert dialog
// Build Add a New Task pop up dialog
// Instantiate the Add a New Task pop up dialog
YAHOO.techdocs.dlgAddTask = new YAHOO.widget.Dialog("dlgAddTask",
{ fixedcenter : true, visible : false, constraintoviewport : true, close: false,
buttons : [ { text:"Submit", handler:function() {this.submit();}, isDefault:true },
{ text:"Cancel", handler:function() {this.cancel();} } ]
YAHOO.util.Event.onDOMReady(function() {
YAHOO.namespace("techdocs"); // create namespace for Insert dialog
// Build Add a New Task pop up dialog
// Instantiate the Add a New Task pop up dialog
YAHOO.techdocs.dlgAddTask = new YAHOO.widget.Dialog("dlgAddTask",
{ fixedcenter : true, visible : false, constraintoviewport : true, close: false,
buttons : [ { text:"Submit", handler:function() {this.submit();}, isDefault:true },
{ text:"Cancel", handler:function() {this.cancel();} } ]
YAHOO.util.Event.onDOMReady(function() {
YAHOO.namespace("techdocs"); // create namespace for Insert dialog
// Build Add a New Task pop up dialog
// Instantiate the Add a New Task pop up dialog
YAHOO.techdocs.dlgAddTask = new YAHOO.widget.Dialog("dlgAddTask",
{ fixedcenter : true, visible : false, constraintoviewport : true, close: false,
buttons : [ { text:"Submit", handler:function() {this.submit();}, isDefault:true },
{ text:"Cancel", handler:function() {this.cancel();} } ]
YAHOO.util.Event.onDOMReady(function() {
YAHOO.namespace("techdocs"); // create namespace for Insert dialog
// Build Add a New Task pop up dialog
// Instantiate the Add a New Task pop up dialog
YAHOO.techdocs.dlgAddTask = new YAHOO.widget.Dialog("dlgAddTask",
{ fixedcenter : true, visible : false, constraintoviewport : true, close: false,
buttons : [ { text:"Submit", handler:function() {this.submit();}, isDefault:true },
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CCOP Task Manager for XML Docs</title>
<!-- Embedded CSS -->
<style type="text/css">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CCOP Task Manager for XML Docs</title>
<!-- Embedded CSS -->
<style type="text/css">
#dlgAddTask .bd{height:25em; width:26em;}
myselect[0].value: 02 o.responseText: 76gf
myselect[1].value: 03 o.responseText: 76gf
myselect[2].value: 04 o.responseText: 76gf
myselect[0].value: 02 o.responseText: ere
myselect[1].value: 03 o.responseText: ere
myselect[2].value: 04 o.responseText: ere
myselect[3].value: 05 o.responseText: ere
myselect[4].value: hgfd o.responseText: ere
myselect[5].value: null o.responseText: ere