Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Back Varible Values From a POP-Up Window To The Parent Window.

Status
Not open for further replies.

hodgesp

Programmer
Apr 21, 2004
32
US
I have an ASP page form that will be used for data entry. I am redoing a MS-Access Runtime application that has been used for a few years.

One of the issues; "What to do about the conditional visibility code" I had set on several of my Form objects.

What happens is, based on what value the user selects from a drop down box; additional fields would become visible requiring input. What I came up with in ASP was a POP-Up Window.

I got the window working by downloading some code from a tech site and I set up a "Switch” statement to conditionally the POP-Up window's initiation.
I set up users input fields and I tested it and it works fine.

The PROBLEM:

With the Parent window still open, how can I pass the values from the POP-UP back into it for use?
I mean without closing the Parent Window and Losing all the data values entered in the previous form fields. How do I set it up so that when a user submits the Parent window data the POP-Up values go with it? I've have tried the standard POST Method but the Parent can not see the POP-UP window Form Field values.



Any help would be appreciated, Thank You Very Many![pc3]


 
in the popup window 'window.opener' command is equal to window command in parent 'window'

so u could use:
opener.document.FormName.HiddenFiled.value="ASD"

will set a hidden field called HiddenField in the parent window's value to "ASD"...

Known is handfull, Unknown is worldfull
 

Could you be more specific please. I assume that window.opener is javascript. I'm not very knowledgeable about that language as yet.

Thank you....
 
yes its javascript...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top