By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,282 Members | 1,587 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,282 IT Pros & Developers. It's quick & easy.

Sending data from Child Window To Parent Window

P: 1
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='< 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
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
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.