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.Html.prototype.hidden
(param)
</tt></big><br>
73 Renders an x/html input tag of type
"hidden" <br><br>
76 <li><b>Parameter
</b> <code>{Object}
</code>:
<br/>
77 param An object containing the tag attributes
88 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
90 <td>Sourcecode in /root/helma-
1.6.1/modules/helma/Html.js:
91 <pre><font color=
"#aaaaaa">234:
</font> helma.Html.prototype.hidden = function(param) {
92 <font color=
"#aaaaaa">235:
</font> if (!param) {
93 <font color=
"#aaaaaa">236:
</font> res.write(
<font color=
"#9999aa">"[Html.hidden: insufficient arguments]
"</font>);
94 <font color=
"#aaaaaa">237:
</font> return;
95 <font color=
"#aaaaaa">238:
</font> }
96 <font color=
"#aaaaaa">239:
</font> var attr = Object.prototype.reduce.call(param);
97 <font color=
"#aaaaaa">240:
</font> attr.type =
<font color=
"#9999aa">"hidden
"</font>;
98 <font color=
"#aaaaaa">241:
</font> attr.value = (attr.value != null) ? encodeForm(attr.value) :
<font color=
"#9999aa">""</font>;
99 <font color=
"#aaaaaa">242:
</font> this.tag(
<font color=
"#9999aa">"input
"</font>, attr);
100 <font color=
"#aaaaaa">243:
</font> return;
101 <font color=
"#aaaaaa">244:
</font> }