Well, for one thing you might not be firing the event on a TD, but it could be anything inside that TD, such as a SPAN. That would make the parent() something other than the row you expect it to be. Try using $(e.target).closest("TR").
Also, in JQuery you don't need to use e.srcElement, it will normalize the event object for you.
EDIT:
Your question still isn't very clear to me, but based on your comments you want to pop up the row id whenever you click on a row:
$("#table").click(function(e) {
var row = $(e.target).closest("TR");
name=$(row).attr("id");
show(row);
});
However this is not consistent with your comment below where you say you want the second click to show the second row, third click to show the third row, etc.