Click to See Complete Forum and Search --> : passing variables to parent?


russ_man7
02-22-2003, 12:44 AM
does anyone know a trick to get a child window to change the parent's variables? the parent has a few big divs, absolutely positioned and sized, with smaller menu divs across the tops. the function finds all of the big divs, changes their css colors, then gets the menus and colors them accordingly, so i have 4 color variables which make up the color scheme. the child window is a customization window, where the user can pick and choose their own colors. this window needs to change these variables, after which i can rerun the coloring function. but, that still leaves me getting values from a child to a parent. i've tried things like window.parent, parent.document, and a few others, but any ideas or suggestions would be appreciated.
this is exclusively for IE6.0, as it is my active desktop.

if anyone's interested, i put an online version at http://www.geocities.com/russ_man7/desktop.html. i'm fairly sure geocities has found some way to cripple it, what with all the crap code they put on your page, but it seems stable enough at the moment. of course, feel free to borrow, steal, mutilate, or otherwise adopt any parts you feel worthy.

russ_man7
02-22-2003, 03:11 AM
i got a fix, without the other window, but i would like to hear what somebody thinks about it. If you get a chance, take a look and send any suggestions my way, good or bad. thanks.
Russell

khalidali63
02-22-2003, 05:54 AM
May be this will guide you..

http://68.145.35.86/skills/javascripts/ParentWinInteractionWithChildWin.html

Khalid