On 9 Jul 2004 15:20:00 -0700, in comp.lang.javascript
sc********@hotmail.com (Scott) wrote:
| Here is the scenario. I need to launch a popup using window.open, but
| can't pass everything i need to pass on the querystring. So I thought
| I would set a cookie.
|
| Basically I do:
|
| setCookie('NameList', aReallyLongListOfNames);
| window.open(aWindowThatNeedsToReadNameList);
|
| then in the window (on the server side) I try to access the cookie,
| but it is not there. What gives? I know that document.cookie has the
| NameList before the window.open call.
You could try using POST to send all of your data to the pop-up
window.
<form name="f1" method="post" .....>
popup would need
<%
v1 = Request.Form("value1")
etc etc etc
%>
Both the GET and POST methods have length limitations (200+ characters
and 4k respectively). Cookies also have a size limit (4k). If your
data is still exceeding this limit then you will have to rethink what
data you are transmitting between pages.