Update of /var/cvs/html/mmbase/validation
In directory james.mmbase.org:/tmp/cvs-serv11918
Modified Files:
Tag: MMBase-1_8
validation.js.jsp
Log Message:
better to setup asynchronislou, because otherwise it will not be before the
first validation of the fields
See also: http://cvs.mmbase.org/viewcvs/html/mmbase/validation
Index: validation.js.jsp
===================================================================
RCS file: /var/cvs/html/mmbase/validation/validation.js.jsp,v
retrieving revision 1.11.2.20
retrieving revision 1.11.2.21
diff -u -b -r1.11.2.20 -r1.11.2.21
--- validation.js.jsp 1 Apr 2008 11:28:18 -0000 1.11.2.20
+++ validation.js.jsp 1 Apr 2008 15:46:45 -0000 1.11.2.21
@@ -10,7 +10,7 @@
* then call validator.setup(window[,root]).
*
* @author Michiel Meeuwissen
- * @version $Id: validation.js.jsp,v 1.11.2.20 2008/04/01 11:28:18 michiel Exp
$
+ * @version $Id: validation.js.jsp,v 1.11.2.21 2008/04/01 15:46:45 michiel Exp
$
*/
var validators = new Array();
@@ -43,7 +43,6 @@
//this.changedElements = 0;
this.elements = new Array();
this.validateHook;
-
this.setup(w);
this.root = root;
this.lang = null;
@@ -470,7 +469,7 @@
var url = '<mm:url page="/mmbase/validation/datatypes.jspx" />';
var params = {nodemanager: nodemanager };
var self = this;
- $.ajax({url: url, type: "GET", dataType: "xml", data: params,
+ $.ajax({async: false, url: url, type: "GET", dataType: "xml", data: params,
complete: function(res, status){
if (status == "success") {
var dataTypes = res.responseXML;
@@ -635,6 +634,8 @@
el.serverValidated = true;
result = res.responseXML;
//console.log("" + res);
+ } else {
+ result = $("<result valid='false' />");
}
}
});
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs