Re: store javascript value from window.open in session variable

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Arthur Nesterovsky (arthur_NO_SPAM_PLEASE__at_nesterovsky-bros.com)
Date: 02/04/04


Date: Wed, 4 Feb 2004 15:52:57 +0200

Hi,

> i have "variab1 = window.open ("a.aspx", "helloworld");"
> i do this inside a RegisterStartupScrict ("key",
> "<script language=javascript>******</script>");
> where ***** is hte javascript command
>
> i need to access variab1 from some other forms (to close it from another
> link from the parent's parent's parent's page). i figured out that the
best
> way to do this is to store this javascript variable in a session variable.
>
> now comes the golden question. "How can I save a javascript variable in
> a session variable?"

It seems that you mix server- and client-side code in your discourse.
A javasript code will be executed on client-side, whereas the session
variable accessible mainly on server-side.

-- 
______________________________
With best wishes, Arthur Nesterovsky
Please visit my home page:
      http://www.nesterovsky-bros.com


Relevant Pages

  • Re: Change the Form action
    ... If you wanted a server-side solution, ... You cannot respond to client-side events without using client-side code. ... Netscape does not support client-side vbscript. ...
    (microsoft.public.inetsdk.programming.scripting.vbscript)
  • Re: Bugs in VBScript GetRef()
    ... ASP is server-side technology. ... client-side code so I don't even know if it does anything if run on the ... Bob Barrows ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.general)
  • Re: Running server-side code from a javascript click event
    ... XSL there is some javascript commands that are attached to certain HTML ... (because I can't generate server-side controls in XSL), ... subroutine which is server-side. ... client-side code do a postback. ...
    (microsoft.public.dotnet.framework.aspnet)