Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by gl on Dec 19, 2007 08:06
open dhtmlx forum
dhtmlxComboFromSelect field value

I have a form with a dhtmlx select box being populated from a database:

<form>
<select style='width:300px;' id="EndUserID" name="EndUserID">
<option ></option>
<% Do Until rsUsers.eof %>

<option class="subdes" value="<%=rsUsers("CorporationID")%>#<%=rsUsers("HCIAffiliation")%>#<%=rsUsers("ID")%>#<%=rsUsers("FirstName")%>#<%=rsUsers("LastName")%>"><%=rsUsers("FirstName")%> <%=rsUsers("LastName")%></option>

<% rsUsers.Movenext
Loop
rsUsers.close %>
</select>
</form>

<script>
var z=dhtmlXComboFromSelect("EndUserID");
z.enableFilteringMode(true);
</script>

The select box and autofiltering are working fine, except, when I select the item from the drop down using key strokes and tab out to the next field and then try and submit the form, the values in the drop down are not passing to the next page. However, if I select the item in the drop down using a mouse click, the value passes fine. Thanks in advance for your help.
Answer posted by Support on Dec 19, 2007 08:17
Please be sure to use latest version of dhtmlxcombo ( latest version was release a day ago ) , it has some fixes related to corrent onBlur processing, it will set value correctly in described scenario.