Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Updating a form from another form on a pop-up window


Message #1 by "Stephen Shilling" <sash1@n...> on Thu, 22 Mar 2001 16:32:05
Peter,

Thanks so much. I have now got everything working thanks to your help.

Best wishes, Stephen



> > This is a very similar question to the last one posted but I have a 
> frame 
> > problem. Here is the question/problem:
> > 
> > I have a page which contains 5 frames displayed vertically and the 
last 
> > frame (frame 5) contains a button which opens a new window. The user 
can 
> > input information onto this new window in text boxes and select lists, 
> > they will then press a submit button which closes the new window. I 
now 
> > need to update some text boxes and button's in frame 4 of the original 
> > window with the submitted information.
> > 
> > I have tried using window.opener in the new window to access 
function's 
> in 
> > the frame page of the main screen which in turn tries to update the 
> info. 
> > in frame 4 but it doesn't work! Please help.
> > 
> > I look forward to hearing from you.
> > 
> 
> Each frame in your frameset has it's own window object, so calling 
> window.opener (which according to my sources is a client-side JavaScript 
> 1.1 feature, so should work in Netscape 4.7) will get you the window 
> object of frame 5. So, try referencing frame 4 using this:
> window.opener.parent.frames[3].
> (It may be clearer to reference the frame by its name or id rather than 

  Return to Index