Forum Moderators: mack

Message Too Old, No Replies

How to pass value from child window to parent window

         

yiling

8:34 am on Aug 20, 2004 (gmt 0)

10+ Year Member



currently i'm doing a project which is required me to get data from database and display it out.
the scenario is something like this..

when the data retrieved is more than 50, i will need to have an "add button" for the user to click it and add the desired item on a child window..

in that child window, there is a search function for the user to search whatever results.
but i face a problem there is whenever there is new search, last selection will be gone then i need to have session onject to store selected result

when the user click "done" to close the child window back and reload the parent window, the last selection is not in the session.. so, wont be able to view the selection in parent window..

how can i do to let them all available in parent window..?

another problem is when i click the "add button" again.. the last store item in session.. all gone..

oh my god! i feel quite depressed about all this!

can anyone tell me how to do so in a simplest way and easiest way to understand?

**p/s.. no hard cording, because all fields might change according to the database.

any help will be much appreciated!

Krapulator

10:38 pm on Aug 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could use javascript to pass a value back to the parent page in the querystring.