somthing like this, this will solve the clicnt side of the problem if I
understand it.
to send to the server can be solver by adding the values to a hidden field
and retrived on a future event, or you can send via the
ICallbackEventHandler. I have a sample on how to do this.
http://dev.thatsit.net.au/samples/as...k/default.aspx
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
<!--
function window_onload() {
var tds =
document.getElementById('colorPicker').getElementsByTagName('TD')
for (i = 0;i<tds.length;i++){
tds[i].onclick = tabClick
}
}
function tabClick(){
var name = this.innerText
var bgColor = this.style.backgroundColor
alert(name)
alert(bgColor )
}
// -->
</script>
</head>
<body onload="return window_onload()">
<form id="form1" runat="server">
<div>
<table id="colorPicker">
<tr>
<td style="background-color :red;">c1
</td>
<td style="background-color:blue;">c2
</td>
</tr>
<tr>
<td style="background-color:green;">c3
</td>
<td style="background-color:yellow;">c4
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
"Mikael Syska" <(E-Mail Removed)> wrote in message
news:e75Jq%23$(E-Mail Removed)...
> Hi,
>
> I have a problem ...:
> If you look at http://syska.dk/upload/eb-14.jpeg you can see some names to
> the right ... Alexandro, syska, resurrected.
>
> I want an option to pick a new color for the name when clicking it.
>
> I have a panel with 216 different colors, put into a <table>
>
> But I can't figure out how to make it ... so that I know witch name was
> clicked and still get the colorId ...
>
> Also I want to have the "player list" in a updatePanel as I want to use
> AJAX ....
>
> I thought it was simple, but I can't figure out, how to do it ...
>
> best regards
> Mikael Syska