Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 27th, 2004, 11:06 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Transfer value from framed popup to framed mainpag

I have a framed mainpage. From one of the pages i open up af popupwindow - also framed.

From a page in this framed popupwindow i wish to return a value to a page in the framed mainpage.

I've tried lots of combinations, but none of them seems to work:
Ex.:
--------------------------------------
    opener.parent.frames['frmMain'].document.form1.test.value = nummer;
--------------------------------------

"test" is the form-field on the framed mainpage.

No matter what I try, I get the following error:
"Opener.parent" is null or not an object."

Anyone knows what the problem is?

 
Old December 27th, 2004, 03:56 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Try top.opener.parent

-Snib - http://www.snibworks.com
Where will you be in 100 years?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Who Framed Rogger Rabbit - Please Help ricardo_s Javascript 1 April 27th, 2006 12:15 AM
Window.open from OnClick event in framed env. nancy Javascript How-To 3 December 22nd, 2004 11:30 AM
Clsing Parent Framed Window swykpisz Javascript How-To 1 October 28th, 2004 04:46 PM
Open framed html and target frame fs22 Javascript How-To 2 May 5th, 2004 04:25 PM
"Find" doesn't work on framed pages abbylee26 HTML Code Clinic 2 October 22nd, 2003 02:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.