473,246 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 software developers and data experts.

store javascript value from window.open in session variable

hi al

i have "variab1 = window.open ("a.aspx", "helloworld");

i do this inside a RegisterStartupScrict ("key", "<script language=javascript>******</script>"); where ***** is hte javascript comman

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?

thanks
Nov 18 '05 #1
3 7296
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

Nov 18 '05 #2
use a hidden frame to post the value back., though keeping the handle valid
will be difficult if any of the pages in the chain postback.

a better approach is to have each child window register itself with its
parent, who regiters the window with its parent, etc.

-- bruce (sqlwork.com)


"Michelle Stone" <mi********@yahoo.com> wrote in message
news:48**********************************@microsof t.com...
hi all

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?"
thanks

Nov 18 '05 #3
Thanks for the response..

I just need to close all child windows (and all grandchildren windows if i may put it that way) when i click on a button the FIRST window that is the head of all the child windows. What I had thought of was putting all the handles of all the child windows in an array stored in a session variable, and then later writing a loop that will close the windows represented by the elements of the array

I understand from your message that handles themselves are valid only till a postback, and in my application, every page goes through lots of postback before hte parent will close them, which implies that my method will not work

I will appreciate it if anyone can suggest some way I can implement what I want

You said something about registering a child with its parent by itself. What did you mean? Please elaborate. Thanks..

----- bruce barker wrote: ----

use a hidden frame to post the value back., though keeping the handle vali
will be difficult if any of the pages in the chain postback

a better approach is to have each child window register itself with it
parent, who regiters the window with its parent, etc

-- bruce (sqlwork.com


"Michelle Stone" <mi********@yahoo.com> wrote in messag
news:48**********************************@microsof t.com..
hi al
i have "variab1 = window.open ("a.aspx", "helloworld");
i do this inside a RegisterStartupScrict ("key", "<scrip language=javascript>******</script>"); where ***** is hte javascript comman i need to access variab1 from some other forms (to close it from anothe link from the parents parents parents page). i figured out that the bes
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 session variable? thank


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.