I have a session variable set on my main page which works fine, I also have
a popup window called from a text link via javascript.

For some reason the session variable is not available on the popup window.

Is this normal?

Re: Session Variable in a Javascript Popup by Aaron

Aaron
Wed Jun 23 09:40:42 CDT 2004

Yep.
http://www.aspfaq.com/2172

Why not call your popup window with something like this:

<script>
window.open('somepage.asp?localvar=<%=session("var")%>');
</script>

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Keith" <@.> wrote in message news:OiXTJ#SWEHA.2844@TK2MSFTNGP09.phx.gbl...
> I have a session variable set on my main page which works fine, I also
have
> a popup window called from a text link via javascript.
>
> For some reason the session variable is not available on the popup window.
>
> Is this normal?
>
>



Re: Session Variable in a Javascript Popup by Bullschmidt

Bullschmidt
Wed Jun 23 18:09:18 CDT 2004

Well at least for an alert popup this should work to display a session
variable:

Response.Write "<script type='text/javascript'>alert('" &
Session("MyVar") & "');</script>"

Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!