• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3714
  • Last Modified:

Accessing fields using parent.opener

I have a page that opens a child window that contains frames.  Within one of the frames, when the form is submitted, I would like to pass a value back to a hidden field held within the original parent window.

Is this the correct syntax?
parent.opener.window.document.all["hidReload"].value = "true";
0
ccboyd
Asked:
ccboyd
  • 2
  • 2
1 Solution
 
ccboydAuthor Commented:
I am currently getting a JavaScript error:

 Line: 2212
 Char: 4
 Error: Object doesn't support this property or method
0
 
Michel PlungjanIT ExpertCommented:

top.opener.document.forms[0].elements["hidReload"].value = "true";


0
 
Michel PlungjanIT ExpertCommented:
opener IS a window

parent=top if there is no nested frameset
0
 
knightEknightCommented:
but you won't be able to do this if the opener url is on a different domain than the popup/frame url
0
 
ccboydAuthor Commented:
Great!  I just really needed some confirmation that I was heading in the right direction.

Thanks.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now