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

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 28th, 2005, 02:53 PM
flashbck's Avatar
flashbck flashbck is offline
/* Spawn Killer Killer */
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Nov 2004
Location: New Orleans, LA, USA
Posts: 1,224 flashbck User rank is Captain (20000 - 30000 Reputation Level)flashbck User rank is Captain (20000 - 30000 Reputation Level)flashbck User rank is Captain (20000 - 30000 Reputation Level)flashbck User rank is Captain (20000 - 30000 Reputation Level)flashbck User rank is Captain (20000 - 30000 Reputation Level)flashbck User rank is Captain (20000 - 30000 Reputation Level)flashbck User rank is Captain (20000 - 30000 Reputation Level)flashbck User rank is Captain (20000 - 30000 Reputation Level)flashbck User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 3924 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 2 Days 19 h 36 m 33 sec
Reputation Power: 214
Passing variable from parent to child window??? UPDATE: Solved!!!!!

Not sure if this is possible, but I am trying to set up a system where, upon clicking a link on a page, a child window opens and when an option on the child window is selected it updates the parent. This much of the process I have completed. The only problem is that I can onl update the parent if I know the name of the element to update. Is there anyway to pass a variable to a child window using the open function? I was thinking of using the 'name' parameter of the open function, but do not know if it is possible to retrieve that information from the child window.

Anyone have any suggestions?

UPDATE:
Ok I've managed to solve the problem! I kind of cheated because I don't really pass a variable to the cihld, instead I created a hidden input field on the parent window. When the child is opened, the variable I wished to pass is inserted into the hidden field and the child reaches back to the parent and references that hidden field to obtain the variable! Not sure is there is a beter way or not, but this worked fine for me!

Reply With Quote
  #2  
Old January 29th, 2005, 11:54 PM
vbrtrmn's Avatar
vbrtrmn vbrtrmn is offline
4:04 Time Not Found
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2004
Location: Northern Virginia
Posts: 2,273 vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 22 h 10 m
Reputation Power: 337
Send a message via ICQ to vbrtrmn Send a message via AIM to vbrtrmn Send a message via MSN to vbrtrmn Send a message via Yahoo to vbrtrmn
flashbck,

Your question has been answered about 5 times in this forum already, please use search and you'll find the proper way to pass variables around, between parents & children.
__________________
I am so smart, I am so smart, S.M.R.T ... I mean S.M.A.R.T.

Stop Using Pop-Ups

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Passing variable from parent to child 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 - 2013, Jelsoft Enterprises Ltd.

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