1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt>Global.MarkupElement.prototype.validate
()
</tt></big><br>
73 Recursively validate this element and its child elements.
<br><br>
87 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
89 <td>Sourcecode in helmaTools.zip/Global/helma.Markup.js:
90 <pre><font color=
"#aaaaaa">717:
</font> MarkupElement.prototype.validate = function() {
91 <font color=
"#aaaaaa">718:
</font> <font color=
"#33aa00"> // apply constraints
92 <font color=
"#aaaaaa">719:
</font> </font> if (this.constraints) {
93 <font color=
"#aaaaaa">720:
</font> for (var i in this.constraints) {
94 <font color=
"#aaaaaa">721:
</font> this.contstraints[i].apply(this);
95 <font color=
"#aaaaaa">722:
</font> }
96 <font color=
"#aaaaaa">723:
</font> }
97 <font color=
"#aaaaaa">724:
</font>
98 <font color=
"#aaaaaa">725:
</font> <font color=
"#33aa00"> // validate child elements
99 <font color=
"#aaaaaa">726:
</font> </font> for (var i in this.map) {
100 <font color=
"#aaaaaa">727:
</font> if (typeof(this.map[i]) ==
<font color=
"#9999aa">"object
"</font> && this.map[i].validate) {
101 <font color=
"#aaaaaa">728:
</font> this.map[i].validate();
102 <font color=
"#aaaaaa">729:
</font> }
103 <font color=
"#aaaaaa">730:
</font> }
104 <font color=
"#aaaaaa">731:
</font> }