We are using dhtmlxCombo for dynamic searching the items. It shows the suggested items which start from the letters, that are entered into the search field.
Is it possible to use dhtmlxCombo to search by separate words?
Like:
Item “John Bell” should appear in the suggested items list when you type “Be”.
I tried this suggestion of replacing this
var filter=new RegExp("^"+text,“i”); } catch (e){ var filter=new RegExp("^"+text.replace(/([[]{}()+*\])/g,"\$1"));
with
var filter=new RegExp(text,“i”); } catch (e){ var filter=new RegExp(text.replace(/([[]{}()+*\])/g,"\$1"));
But now the combo box is not giving the expected behavior. Whatever I type in the combo box the first letter is being typed as ‘A’ or some other letters. Rest of the letters are typed correctly. If go and delete a the search is working correctly. I am attaching my dhtmlxcombo.js file for reference.
I have a combo with some symptoms. When I type “Dim” in the combo it inputs “EYM” in the combo. I am trying to search the word “Diminision of vision”. The basic search functionality is not working correctly now.
Please check if something is wrong with my dhtmlxcombo.js file. dhtmlxcombo.zip (7.04 KB)
I have followed your suggestion and increased the filtering timeout to 1000. But even now the behavior is not as expected. Try the same URL I sent you yesterday.
When I enter the word “Eye” in the combo box it should display all the words containing or starting with “Eye” instead it is just displaying the first match and autocompleting as “Black Eye”. Please suggest how to solve this.