Log updates
[beagleboard.org.git] / code / .docs / prototype_Global / function_helma.Http.prototype.setCookies.html
blobe217a04c3a51a6ce24a31ec79ef9730273e8897a
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2 <html>
4 <head>
5 <title></title>
6 <style type="text/css">
8 body, p, td, th, li {
9 font-family: verdana, sans-serif;
10 font-size: 10pt;
13 big.top {
14 font-size: 18pt;
15 font-weight: bold;
18 big {
19 font-size: 13pt;
20 font-weight: bold;
23 a {
24 font-weight:bold;
25 color: #cc3333;
26 text-decoration:none;
28 a:hover {
29 text-decoration:underline;
32 .navig {
33 font-size: 9px;
34 text-decoration: none;
35 font-weight:normal;
38 li {
39 padding-bottom: 5px;
43 .mainbox {
44 border-color:#999999;
45 padding-top:5px;
46 padding-bottom:5px;
47 border-bottom-width:1px;
48 border-bottom-style:dotted;
51 .headline {
52 font-weight:bold;
53 background:#dfdfdf;
54 border-color:#999999;
55 padding-top:5px;
56 padding-bottom:5px;
59 </style>
60 </head>
62 <body>
64 <table width="90%" border="0" cellspacing="1" cellpadding="5">
65 <tr>
66 <td class="headline">
67 <big><tt>Global.helma.Http.prototype.setCookies&nbsp;(cookies)</tt></big><br>
68 </td>
69 </tr>
71 <tr>
72 <td class="mainbox">
73 Adds the cookies passed as argument to the list of cookies to send
74 to the remote server. <br><br>
76 <ul>
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.
84 </ul>
85 </td>
86 </tr>
87 </table>
89 <table width="90%" border="0" cellspacing="1" cellpadding="5">
90 <tr>
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&lt;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> }
100 </pre>
101 </td>
102 </tr>
104 </table>
110 </body>
111 </html>