Is it possible to have a div inside a multiple select list box? I'd like to place rows of data inside the box that the user will select for aesthetics. Something like this:
<div class="scrollTable" id="testScrollTable" style="height: 200; width: 908;">
<span class="scrollTableHead">
<table cellspacing="0" frame="border">
<tr>
<td width="50"><nobr> Station ID</nobr></td>
<td width="100"><nobr> Station Name</nobr></td>
<td width="100%"><nobr> </nobr></td>
<td></td>
</tr>
</table>
</span>
<span id="sTable" class="scrollTableBody">
<table cellspacing="0" cellpadding="0" style="border-collapse: collapse;">
<%
Set cn = GetDBConnection()
Set SQLStmt = Server.CreateObject("ADODB.Command")
Set RS = Server.CreateObject("ADODB.Recordset")
SQLStmt.CommandText = "select id, name from station_groups order by id"
SQLStmt.CommandType = 1
Set SQLStmt.ActiveConnection = cn
RS.Open SQLStmt
count = 0
Do While Not RS.EOF
IF CInt(selid) = CInt(RS("id")) OR CInt(selid) = -1 THEN
selid = RS("id")
pos = count
selname = RS("name")
END IF
%>
<tr ID="trItem[<%=count%>]" height="20" <% IF CInt(selid) = CInt(RS("id")) THEN %> class="selitem"<% ELSE %>class="item"<% END IF %> onClick="ItemClick(this);">
<input type="hidden" name="group[<%=count%>]" value="<%=RS("id")%>">
<td class="frowdata" width="50" nowrap> <%=RS("id")%></td>
<td class="lrowdata" width="100" nowrap> <%=RS("name")%></td>
<td class="ritem" width="100%" nowrap> </td>
</tr>
<%
count = count + 1
RS.MoveNext
Loop
RS.Close
%>
<%
FOR row = count to 7 %>
<tr class="item" height="20">
<td class="frowdata" width="50" nowrap> </td>
<td class="lrowdata" width="100" nowrap> </td>
<td class="ritem" width="100%" nowrap> </td>
</tr>
<% NEXT %>
</table>
</span>
</div>
Thanks in advance,
Todd
<div class="scrollTable" id="testScrollTable" style="height: 200; width: 908;">
<span class="scrollTableHead">
<table cellspacing="0" frame="border">
<tr>
<td width="50"><nobr> Station ID</nobr></td>
<td width="100"><nobr> Station Name</nobr></td>
<td width="100%"><nobr> </nobr></td>
<td></td>
</tr>
</table>
</span>
<span id="sTable" class="scrollTableBody">
<table cellspacing="0" cellpadding="0" style="border-collapse: collapse;">
<%
Set cn = GetDBConnection()
Set SQLStmt = Server.CreateObject("ADODB.Command")
Set RS = Server.CreateObject("ADODB.Recordset")
SQLStmt.CommandText = "select id, name from station_groups order by id"
SQLStmt.CommandType = 1
Set SQLStmt.ActiveConnection = cn
RS.Open SQLStmt
count = 0
Do While Not RS.EOF
IF CInt(selid) = CInt(RS("id")) OR CInt(selid) = -1 THEN
selid = RS("id")
pos = count
selname = RS("name")
END IF
%>
<tr ID="trItem[<%=count%>]" height="20" <% IF CInt(selid) = CInt(RS("id")) THEN %> class="selitem"<% ELSE %>class="item"<% END IF %> onClick="ItemClick(this);">
<input type="hidden" name="group[<%=count%>]" value="<%=RS("id")%>">
<td class="frowdata" width="50" nowrap> <%=RS("id")%></td>
<td class="lrowdata" width="100" nowrap> <%=RS("name")%></td>
<td class="ritem" width="100%" nowrap> </td>
</tr>
<%
count = count + 1
RS.MoveNext
Loop
RS.Close
%>
<%
FOR row = count to 7 %>
<tr class="item" height="20">
<td class="frowdata" width="50" nowrap> </td>
<td class="lrowdata" width="100" nowrap> </td>
<td class="ritem" width="100%" nowrap> </td>
</tr>
<% NEXT %>
</table>
</span>
</div>
Thanks in advance,
Todd