Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 January 4th, 2004, 05:32 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default Access the opener?

I have a bit of a complicated problem..

I have a parent window with an inline frame..
The inline frame pretty much contains all of my JS for this situation.
The inline frame contains links to view email messages, upon double clicking, it dynamically creates a pop-up window... which works fine..
The pop-up window is written using Javascript instead of an external file, it contains a frameset. Each frame is dynamically written from the first inline frame.

Alright enough background. I am trying to access JS functionality in the inline frame from one of the framesets in the pop-up window. I've tried the opener property, but I get a syntax error first and then another error stating the opener property is null or undefined. What path should I use to access the inline frame?

Example of event:
<a href='javascript:void();' onclick='msg_summary.compose("reply_to", 3, 0)' oncontextmenu='msg_summary.compose_menu(3, 0)' target='_top'>Richard York</a>

msg_summary is the name of the inline frame, I've also tried opener in its place.. but obviously being part of a frameset, there seems to be more that I need to plug in there each produce the same error messages.

Is this possible or am I stuck writing JavaScript to the window?

: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::
 
Old January 4th, 2004, 09:36 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Finally got this sorted!

After hours of hair pulling I settled on:
top.opener.compose

: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
access opener window's elements in opened window hafizmuhammadmushtaq Javascript 3 April 8th, 2008 01:43 AM
opener.document davidph Javascript 2 May 26th, 2007 01:36 AM
Problem accessing the window.opener.opener maryuob Javascript 3 January 18th, 2006 05:25 AM
Opener darkhalf Javascript 7 November 21st, 2005 11:27 AM
window.opener help fs22 Javascript How-To 6 May 9th, 2004 10:50 PM





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