M
manolopm
Hi:
I've a problem with cells generated by insertCell, I need to add
"onclick" event something like this
html+='\t<td class='+ClassSelection+' id='+i+'-'+j
+' onclick='+this.GetName()+'.Select('+i+','+j+');'
+ this.GetName()+'.Draw(true);>'
+actual.Text+'</td>\n';*/
to generate something like:
<td class="class" id=1-3 onclick=main.Select(1-3);main.Draw(true);>
sometext </td>
with DOM I'm doing something like
var cell=row.insertCell(-1);
cell.innerHTML=actual.Text;
cell.className=ClassSelection;
cell.id=i+'-'+j;
and that works but I don't know how to do to generate the "onclick"
part.... Any help?
I've a problem with cells generated by insertCell, I need to add
"onclick" event something like this
html+='\t<td class='+ClassSelection+' id='+i+'-'+j
+' onclick='+this.GetName()+'.Select('+i+','+j+');'
+ this.GetName()+'.Draw(true);>'
+actual.Text+'</td>\n';*/
to generate something like:
<td class="class" id=1-3 onclick=main.Select(1-3);main.Draw(true);>
sometext </td>
with DOM I'm doing something like
var cell=row.insertCell(-1);
cell.innerHTML=actual.Text;
cell.className=ClassSelection;
cell.id=i+'-'+j;
and that works but I don't know how to do to generate the "onclick"
part.... Any help?