LyndonOHRC
Programmer
Because it's so complex I've included a screen shot of the form I'm trying to style a suggest list for.
The element (horse) where I've typed Suggest List Below is where I'd like to display my ajax generated list. It will fire the ajax routine after the 3rd character is typed and attempt to look up a horse.
I would like to have it positioned directly below the input element on top of all the other objects.
The form is structured from nested tables and I've tried placing a row just below the element and toggeling the display from none to block but that method pushes down the other rows when I set the position property of the table cell. If I use position: absolute no innerHTML is ever displayed. The other options all push the other rows down instead of displaying over them.
I've also tried placing a hidden <div > after the input element and it behaves the same way. I guess my problem may be that I'm using tables.
I hope this makes sense and I appreciate any help...
Style Sheet, I've tried all of the position property values, this is the most recent attempt.
Client Side JavaScript, pretty simple, just toggeling the list off and on.
Client Side Html, my current attempt using the hidden row...
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
The element (horse) where I've typed Suggest List Below is where I'd like to display my ajax generated list. It will fire the ajax routine after the 3rd character is typed and attempt to look up a horse.
I would like to have it positioned directly below the input element on top of all the other objects.
The form is structured from nested tables and I've tried placing a row just below the element and toggeling the display from none to block but that method pushes down the other rows when I set the position property of the table cell. If I use position: absolute no innerHTML is ever displayed. The other options all push the other rows down instead of displaying over them.
I've also tried placing a hidden <div > after the input element and it behaves the same way. I guess my problem may be that I'm using tables.
I hope this makes sense and I appreciate any help...
Style Sheet, I've tried all of the position property values, this is the most recent attempt.
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;*/
}
Client Side JavaScript, pretty simple, just toggeling the list off and on.
Code:
function ajaxFunction(inputValue,elem) {
if (inputValue.length > 2){
document.getElementById("pickList"+elem).style.display="inline";
document.getElementById("pickListMargin"+elem).style.display="inline";
document.getElementById("pickList"+elem).innerHTML="<br /> List ";
}
else {
document.getElementById("pickListMargin"+elem).style.display="none";
document.getElementById("pickList"+elem).innerHTML="";
document.getElementById("pickList"+elem).style.display="none";
}
}
function closeIt(elem){
document.getElementById("pickListMargin"+elem).style.display="none";
document.getElementById("pickList"+elem).innerHTML="";
document.getElementById("pickList"+elem).style.display="none";
}
Client Side Html, my current attempt using the hidden row...
Code:
<tr>
<td>
<div align="right">Horse</div>
</td>
<td>
<input required="Yes" message="Horse Name Required" name="RSWinHorseName" id="RSWinHorseName" size="30" maxlength="100" value="" onkeyup="ajaxFunction(this.value,'RSWinHorseName');" autocomplete="off" onblur="closeIt('RSWinHorseName');">
</td>
<td>
<div align="right">OBN</div>
</td>
<td>
<INPUT TYPE="Text" NAME="RSWinOBN" ID="RSWinOBN" SIZE="7" MAXLENGTH="7" VALUE="">
</td>
</tr>
<tr>
<td id="pickListMarginRSWinHorseName" style="display: none;"></td>
<td id="pickListRSWinHorseName" colspan="3" style="display: none;" class="suggestList">
<br>List<br> <!--- populate a <UL> here with horse name suggest items --->
</td>
</tr>
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey