I was making a mailing sort of system.Now am stuck with a problem :
Suppose i have rows in table showing inbox messages and on click they show full message.Now with each row i want to have a checkbox,so that on checking that checkbox i can delete that particular row from the page.But as i had made whole row clickable,as soon as i check the checkbox it moves on to next page.
My code is something like this :
<tr bgcolor="#5D1B90" color="#FFFFFF" onmouseover="ChangeColor(this, true,false);" onmouseout="ChangeColor(this, false,false);" onclick="DoNav('showmail.jsp?mid=<%=messageid%>');">
<td callspan="3"><%=sendername%> : <%=messagesubject%> <%=sendingtime%></td>
</tr>
Here onNav function is :
function DoNav(theUrl)
{
document.location.href = theUrl;
}
So how to make it work according to requirement?
Also i want sendingtime of each row to be right aligned and subject to be center aligned in row.How to do this ?