Click to See Complete Forum and Search --> : changing value from new window


micah
06-26-2003, 08:43 AM
Hi,

I have opened a new window in order for my users to choose hex colors. I want to change the value of a text box in the parent window depending on their selection in the new window. I can't work out how to do this.

I tried parent.oxyform.color.value='ffaa00' and top.oxyform.color.value='ff0000' but these didn't work (or give me an error)

any ideas?

Many thanks,

Micah

pyro
06-26-2003, 08:48 AM
Try: window.opener.formname.fieldname.value = "yourvalue";

micah
06-26-2003, 08:53 AM
perfect, cheers!