If you want to save it in a text ox on the original page, you could build a js function in the original page to accept two arguments and assign the value of the first argument to the value of the second argument, like so:
Code:
function setColor(elemId, colorStr){
document.getElementById(elemId).value = colorStr;
}
Now what you would do is when you open your new window, provide it with a querystring argument to pass along the id of an input box that your going to want the color returned to. These Id's need to be unique.
When they click a color in the new window, have it call the parent windows function with the passed id string and the chosen color. You can pass the color to a js function in your colorchooser window to do this for you:
Code:
function passColor(colorStr){
parent.setColor("<%=Request.QueryString("InputId")%>",colorStr);
}
You notice I just put the InputId in straight from the querystring, in your case it may be called something differant, basically it's just the querystring variable I suggested adding up above in the window open address.
If you already have the color map taken care of, than I think you should have the basis iof everything else from what I posted above, if I overlooked anything, please post back so one of us can fill in any blanks I left.
-Tarwn
01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Do you know how hot your computer is running at home? I do