Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 26th, 2002, 12:33 AM
Nigorr Nigorr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Brisbane, Australia
Posts: 78 Nigorr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
[JAVASCRIPT] Referencing parent window, from child spawned window

I was wondering how I would go about referencing back to the parent window after I had spawned a child window.

Example

<parent.htm>
open a new window name is "child.htm"

<child.htm>
ok I have finished what I was doing now close and send value back to parent.htm.

So how do I reference parent.htm now?

I thought maybe after I spawn the child.htm I also have a variable parentWindow in child.htm that I set on the next line. this seems a bit messy to me. Isn't there a way to find out where child.htm got spawned from?

Your thoughts.

Reply With Quote
  #2  
Old November 26th, 2002, 11:33 AM
dgibson dgibson is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Urbana, MD, USA
Posts: 66 dgibson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Opener

Use "opener" instead of "parentWindow"

opener.variablename
opener.functionname
opener.document.form.formfield.value

etc.

Reply With Quote
  #3  
Old November 26th, 2002, 06:50 PM
Nigorr Nigorr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Brisbane, Australia
Posts: 78 Nigorr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
That's works great.

Thankyou.

Nichoals Orr

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > [JAVASCRIPT] Referencing parent window, from child spawned window


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap