I have created dynamic tables whose length depends upon the number of records.
Can I use scrollbar in tables?
My code for creating dynamic table is as follows -
Is line no. 8,9, & 10 really needed?
Thanks and regards,
Vikas
Can I use scrollbar in tables?
My code for creating dynamic table is as follows -
Code:
<%
dim conn
set conn = Server.CreateObject("ADODB.Connection")
conn.open = "Provider=MSDAORA.1;dsn=ops;password=op;user id=Outpass;Data Source=Intradb;Persist Security Info=True"
set rs = server.CreateObject("ADODB.Recordset")
set rs = conn.execute("Select gp_no, per_name, dept from gps")
%>
<script type="text/javascript" >
window.onload = function() { dynamicTableInit(document.getElementById('myTable')); } ;
</script>
<br>
<br>
<br>
<table id="myTable" class="dynamicTable" align="center" border="1" height="400px">
<thead>
<tr><th>Gatepass No.</th><th>Name of Person</th><th>Department</th></tr>
</thead>
<tbody>
<% do while not rs.eof %>
<tr><td><%=rs("gp_no")%></td><td><%=rs("per_name")%></td><td><%=rs("dept")%></td></tr>
<% rs.movenext
loop %>
</tbody>
</table>
Thanks and regards,
Vikas
Comment