PDA

View Full Version : Child Window Passing Data to Parent Window


skyeoctober
08-08-2003, 09:07 PM
Here's my situtation: We are using ASP.NET pages. I have a parent page that performs a window.open event causing a new child window to open. The users will be entering data into four Textbox controls on the child window. When the users close the child window (after entering their data), I need to pass that data to the parent and refresh the parent page so it can load the data to be viewed.

Does anyone know how to do this?

Thanks

Kelley

Vincent Puglia
08-08-2003, 10:21 PM
Hi,

Essentially, your child window passes its contents with something like:
opener.functionname(var)

The main window (the opener) then parses the var passed and places them in its own text fields.

or
opener.document.formname.fieldname.value = this.value
etc...

& then closes itself (optionally)

see the "Add Options from a Child Window" script/tutorial at my site (GrassBlade) for ideas/example

Vinny