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.helma.Markup.Checkbox
(attributes,
children)
</tt></big><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">156:
</font> helma.Markup.Checkbox = function(attributes, children) {
91 <font color=
"#aaaaaa">157:
</font> if (!attributes)
92 <font color=
"#aaaaaa">158:
</font> attributes = {};
93 <font color=
"#aaaaaa">159:
</font> attributes.type =
<font color=
"#9999aa">"checkbox
"</font>;
94 <font color=
"#aaaaaa">160:
</font> if (!attributes.checked)
95 <font color=
"#aaaaaa">161:
</font> delete(attributes.checked);
96 <font color=
"#aaaaaa">162:
</font> return new MarkupElement(
<font color=
"#9999aa">"input
"</font>, attributes, children);
97 <font color=
"#aaaaaa">163:
</font> }