Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 18, 2008 09:28
open dhtmlx forum
Autocomplete not working in JSP

Hi,
I'm trying to use the combo box in a jsp. When i load the JSP it shows the combo box and all the options but does not use the autocomplete. I'm using JSTL to get the elements from a linkedHashMap. Here's the code:

<td>
<select id="combo_zone1" name="vendor">
<option value="suspense"></option>
    <c:forEach items="${vendors}" var="vendor">
<option value="<c:out value="${vendor.key}" />">
<c:out value="${vendor.key}" /></option>
    </c:forEach>
</select>
<script>


var z=dhtmlXComboFromSelect("combo_zone1");
z.enableFilteringMode(true);

</script>

</td>

Thanks!

Answer posted by Support on Jul 21, 2008 01:42
There is no any visible error in your code, please be sure that zone which combo placed allows selection ( has not blocking styles )
Also, the problem can be caused by usage of special chars in option names, if problem still occurs for you - please provide exact HTML generated by your code