return a data value to a 'parent' window?

S

Steve Bywaters

I'm attempting to do a lookup, using a javascript-launched child window to
enable the user to select a value, then return that value to the
parent/launching window.

Pictures... to demonstrate the issue:
http://users.bigpond.net.au/stevebywaters/image1.gif shows the first window.
The operator can press the 'Select' button (to get a value to put into
'Location' entry field).
When they do, a child window is launched, showing a list of 'Sites' (and
there will be mutiple search possibilities, too).
See http://users.bigpond.net.au/stevebywaters/image2.gif

I would like the operator to be able to select the record they want, then
press a Select button, at which point the child window will close and the
Primary Key and any other relevant info of the selected record will be
returned to the underlying ('parent') window, populating the 'Location'
entry..

How to do this, esp. in ASP.NET?

Some ideas that occur to me are:
1. Set a Session variable in the child window, and read it in the parent
2. Similarly, using a cookie
3. Using client-side js, set a value in the parent window from the child
window, put it in a 'Hidden' control type, then read that field value....
don't know if this is possible, and it's not very "ASP.NET-like" <g>

I'd like to use this methodology a lot (the way I tend to in Windows apps),
so it would be good to get advice on a good, solid way to do it - my
solutions tend to be old-style classic ASP + javascript.

tia
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top