Click to See Complete Forum and Search --> : form input cross-browser


xataku_nakusute
07-25-2003, 05:27 AM
yet another one of thoz questionz...

say i have a window that opens up anotha one that contains a color chart....
now how would i get it so that when the color the user wants is clicked, the color input on the first page is filled out with the color's hex value?(there are more than one input fields prompting for color)

Khalid Ali
07-25-2003, 08:28 AM
from child to parent

top.opener.document.parentFromName.parentFieldName.value = valueInChild

xataku_nakusute
07-25-2003, 05:30 PM
im unfamiliar with this......where would i put it in my code?

pyro
07-25-2003, 05:33 PM
Either in a function called onclick, or in the onclick handler itself would be a good place to start...

<a href="#" onclick="top.opener.document.parentFromName.parentFieldName.value = valueInChild; return false;">Move values</a>

xataku_nakusute
07-25-2003, 05:44 PM
explanations do wonders....

pyro
07-25-2003, 05:45 PM
No problem... Glad it helped.