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.openTag
(name,
attributes)
</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">392:
</font> helma.Markup.openTag = function(name, attributes) {
91 <font color=
"#aaaaaa">393:
</font> if (!name) {
92 <font color=
"#aaaaaa">394:
</font> throw
<font color=
"#9999aa">"helma.Markup.openTag called without element name
"</font>;
93 <font color=
"#aaaaaa">395:
</font> }
94 <font color=
"#aaaaaa">396:
</font> res.write(
<font color=
"#9999aa">"<"</font>);
95 <font color=
"#aaaaaa">397:
</font> res.write(name);
96 <font color=
"#aaaaaa">398:
</font> if (attributes) {
97 <font color=
"#aaaaaa">399:
</font> for (var i in attributes) {
98 <font color=
"#aaaaaa">400:
</font> if (typeof(attributes[i]) ==
<font color=
"#9999aa">"undefined
"</font>)
99 <font color=
"#aaaaaa">401:
</font> continue;
100 <font color=
"#aaaaaa">402:
</font> res.write(
<font color=
"#9999aa">" "</font>);
101 <font color=
"#aaaaaa">403:
</font> res.write(i);
102 <font color=
"#aaaaaa">404:
</font> res.write(
<font color=
"#9999aa">"=\
"</font>");
103 <font color=
"#aaaaaa">405:
</font> res.write(encodeForm(attributes[i]));
104 <font color=
"#aaaaaa">406:
</font> res.write(
<font color=
"#9999aa">"\
"</font>");
105 <font color=
"#aaaaaa">407:
</font> }
106 <font color=
"#aaaaaa">408:
</font> }
107 <font color=
"#aaaaaa">409:
</font> res.write(
<font color=
"#9999aa">">"</font>);
108 <font color=
"#aaaaaa">410:
</font> }