Hi this is scorpionz, The Reason of this thread
Let me put forward to all of the ladies and Gentlemen
I have a Table which is split in different cells and columns
Now in these Cells i have some table infact you can view the below code by just copy/paste and save with .html extension....Its a simple design view after running in Browser you can view three different tables with left, center , Right. and in the center table below is the 2 buttons with "Print It" and "Print View"
What I want to do is,
if i Press "Print It" then it Print the table with the id: id="recordb" It is a Center table with fields id, First Name, Last Name
or if i Press "Print view" then It show that Table Print Preview of Id: id="recordb" Individually,
I have create empty function with name , can be view below.
But stuck what to write inside these......
Any Response will be highly appreciated with great Interest.....
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style3 {color: #FFFFFF; font-weight: bold; }
-->
</style>
<script>
function printme()
{
}
function printpreview()
{
}
</script>
</head>
<body>
<table align="center" width="650px" height="279" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="44" colspan="4"> </td>
</tr>
<tr>
<td width="23%" align="center"><table width="73%" height="77" border="1" cellpadding="0" cellspacing="0">
<tr bgcolor="#333366" align="center">
<td><a href="#" style="color:#FFFF99;font-weight:bold;">Insert</a></td>
</tr>
<tr bgcolor="#333366" align="center">
<td><a href="#" style="color:#FFFF99;font-weight:bold;">Update</a></td>
</tr>
<tr bgcolor="#333366" align="center">
<td ><a href="#" style="color:#FFFF99;font-weight:bold;">Delete</a></td>
</tr>
</table></td>
<td colspan="2" align="center"><table width="82%" border="1" cellspacing="0" cellpadding="0">
<tr bgcolor="#333366">
<td width="29%" align="center"><span class="style3">Id</span></td>
<td width="31%" align="center"><span class="style3">First Name</span></td>
<td width="40%" align="center"><span class="style3">Last Name</span></td>
</tr>
<tr bgcolor="#999999" align="center" >
<td >12</td>
<td>abc</td>
<td>xyz</td>
</tr>
<tr bgcolor="#999999" align="center">
<td>15</td>
<td>ghj</td>
<td>klm</td>
</tr>
<tr bgcolor="#999999" align="center">
<td>53</td>
<td>qwe</td>
<td>rty</td>
</tr>
</table></td>
<td width="19%" align="center"><table width="76%" height="112" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="19" bgcolor="#333366" align="center"><a href="#" style="color:#FFFF99;font-weight:bold;">Poll</a></td>
</tr>
<tr bgcolor="#999999" >
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="23"> </td>
<td width="29%" align="center"><input type="button" name="print" id="print" value="Print It" onclick="printme()" /></td>
<td width="29%" align="center"><input type="button" name="print" id="print" value="Print View" onclick="printpreview()" /></td>
<td height="23"> </td>
</tr>
<tr>
<td colspan="4"> </td>
</tr>
</table>
</body>
</html>
Thanks and Regards
ScorpionZ