Connecting Tech Pros Worldwide Help | Site Map

Reference lost between parent & child window.

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 10:42 AM
Barton
Guest
 
Posts: n/a
Default Reference lost between parent & child window.

Hello,

I've got this main window with a form opening a child window with
another form. Now I want to copy an input value from the child window
back to the parent window. That's not a problem at all using
window.opener. But the problem is that the child window, before it
posts back the values to it's parent window needs to post these values
to a database. Now, that's not a problem either, but it seems that the
reference is lost between child & parent window after the values have
been added to the database.

Now, the real-world example:

I've got a form on my main page with article input fields. One of
these fields is a drop down box containing authors. Now I want the
user to be able to add another author to this drop down box.

This is not that hard, I just open a child window, the user enters a
new author, this author is created in the database and the ID of the
author is returned. This ID I want to post back to the parent window,
but that's the part that does not work.

Is there a way to keep the reference even if the child window has been
refreshed?

Thanks,

Barton

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.