469,603 Members | 2,302 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

In dhtmlxcombo autocomplete mode is not working, problem with filtering

My Question: I have a jsp file which will generate a XML. The XML file is as follows.
Expand|Select|Wrap|Line Numbers
  1. <? xml version ="1.0" encoding="UTF-8" ?>
  2. <complete add="true">
  3. <option value="1">CITY</option>
  4. <option value="2">STATE</option>
  5. <option value="3">COUNTRY</option> 
  6. <option value="4">REGION</option>
  7. </complete>
  8.  
I populating this data from xml into dhtmlxcombo. My combo code is as follows,
Expand|Select|Wrap|Line Numbers
  1. <div id="loctype" style="width:200px;height:30px;">
  2. <script>
  3. var z=new dhtmlXCombo("loctype","alfa1",155);
  4. z.enableFilteringMode(true,"Location.jsp",true);
  5. </script>
  6. </div>
  7.  
The data from the XML is getting populated in the combo.
My problem is ,
1.The data is from the Xml is populated more than once in the combo.
2.when i pressed C, City is not getting selected.
the below code is working
Expand|Select|Wrap|Line Numbers
  1. var z=new dhtmlXCombo("loctype","alfa1",155);
  2. z.enableFilteringMode(true);
  3. z.loadXML("Location.jsp");
  4.  
But i want my combo to work under autoComplete mode. Please help.
Thanks in advance
Oct 24 '10 #1
1 2795
acoder
16,027 Expert Mod 8TB
Have you checked the examples? I'm sure they'll have given an example for autocomplete.
Oct 27 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Tom | last post: by
8 posts views Thread by Hardy Wang | last post: by
6 posts views Thread by Michael Trausch | last post: by
39 posts views Thread by Frederick Gotham | last post: by
10 posts views Thread by Stephen.Schoenberger | last post: by
reply views Thread by =?Utf-8?B?RHJpbmdv?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.