LyndonOHRC
Programmer
I'm working on a suggest list, the two classes listed below are examples I found.
My ajax data displays fine until I apply the suggestList and listItem classes, then no data is displayed at all.
.css
.html
.js
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
My ajax data displays fine until I apply the suggestList and listItem classes, then no data is displayed at all.
.css
Code:
.suggestList
{
width: 302px;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
border: 1px solid #8996B5;
background-color: #FFFFFF;
position: absolute;
overflow:auto;
list-style-type: none;
height: 500;
}
.listItem
{
width: 302px;
height: 20px;
margin: 3px 0px 0px 0px;
padding: 3px 0px 0px 0px;
vertical-align: text-bottom;
position: relative;
font-family: arial;
font-size: 12px;
color: DarkBlue;
background-color: #FFFFFF;
cursor: hand;
display: block;
}
.html
Code:
<tr>
<td></td>
<td id="RSWinHorseTableData1" colspan="3" style="display:none;"></td>
</tr>
.js
Code:
if(xmlhttp.readyState==4){
var users = eval(trim(xmlhttp.responseText));
var str = '<ul class="suggestList">';
for ( var recno in users ) {
str += '<li class="listItem" id="'+users[recno].OBN+'" onclick="putIn( \'' +users[recno].OBN+ '\')">'+users[recno].HoresName+'</li>';
}
str +='</ul>';
document.getElementById(TableData).innerHTML = str;
document.getElementById(TableData).style.display='table-cell';
}
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey