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.Http.prototype.setCookies
(cookies)
</tt></big><br>
73 Adds the cookies passed as argument to the list of cookies to send
74 to the remote server.
<br><br>
77 <li><b>Parameter
</b> <code>{Array}
</code>:
<br/>
78 cookies An array containing objects with the properties
"name" (the name of the cookie) and
"value" (the value of the cookie) set.
89 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
91 <td>Sourcecode in /root/helma-
1.6.1/modules/helma/Http.js:
92 <pre><font color=
"#aaaaaa">285:
</font> this.setCookies = function(cookies) {
93 <font color=
"#aaaaaa">286:
</font> if (cookies != null) {
94 <font color=
"#aaaaaa">287:
</font> for (var i=
0; i
<cookies.length; i++) {
95 <font color=
"#aaaaaa">288:
</font> this.setCookie(cookies[i].name, cookies[i].value);
96 <font color=
"#aaaaaa">289:
</font> }
97 <font color=
"#aaaaaa">290:
</font> }
98 <font color=
"#aaaaaa">291:
</font> return;
99 <font color=
"#aaaaaa">292:
</font> }