I am working on enhancing a composite control's client side functionality by recreating all methods in JavaScript. However, I am facing some issues:
- Is it possible to trigger the onclick event on the client side instead of the server side?
- The statement
table.onclick=SelectRow(event)
is causing a bug!
Here is the code snippet:
function Control_Init() {
if( !(document.getElementById) ) { return; }
for( var i = 0; i < Controls.length; i++ ) {
var info = Controls[i];
Control_Load(info);
}
}
// More code goes here...