468,742 Members | 1,899 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,742 developers. It's quick & easy.

Sending data from Child Window To Parent Window

I have a simple script which has worked flawlessly for years - it copies a bit of data from a child window down into a form field in the parent window that opened the child.

But now in Firefox 2.0 it does not work.

Parent window: user clicks on button or link to open a child window.

Child Window: child opens and shows a browse file field. Upon submit, child window refreshes and actually loads a second .asp page in the child. This second .asp file loaded into the child is where the file name that was just uploaded is retrieved from the upload stream. In the past I used this syntax

<script language="javascript">
parent.opener.document.form1.nlc_img.value='<%=.as p file name retrieved goes here%>';

The result of this script, the file name is copied into a form field in the parent window automatically in the "background" so when I move or close my child the file name already exists in the the parent field.

This script works in IE, Safari, Firefox 1.5, but NOT in firefox 2.0?

What do I need to modify to get it to work in Firefox 2.0?
Nov 21 '06 #1
1 4061
16,027 Expert Mod 8TB
Usually, to access the parent window, you'd use window.opener.
May 30 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Isabel | last post: by
1 post views Thread by Steve Bywaters | last post: by
1 post views Thread by Bill Borg | last post: by
5 posts views Thread by midnight_use_only | last post: by
4 posts views Thread by Richard Lewis Haggard | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.