views:

38

answers:

1
var tr = document.createElement('tr');
tr.setAttribute("onclick",p.onrowclick+"("+row.id+")");

Hi, the above works fine for me in Firefox. I can't find the correct syntax for a workaround in IE.

I'm using IE8.

+2  A: 

Don't set events like this. Pass it a proper function:

tr.onclick = function() { p.onrowclick(...); }  
Pekka