Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by sirisha on Sep 24, 2009 03:17
open dhtmlx forum
Script error when "?" character is typed in autocomplete combo

Hello Team,
in previous question i forgot to mention that its autocomplete combo.
When i tried to enter "?" in combo or give it as one of the option for autoocmplete combo,
i get script error as "Unexpected Quantifier".
Please help me in this reagrd as soon as possible.

thank you
Sirisha
Answer posted by Alex (support) on Sep 24, 2009 05:37

Hello,

please try to locate the following line in the dhtmlxcombo.js:

var filter=new RegExp("^"+text.replace(/([\[\]\{\}\(\)\+\*\\])/g,"\\$1"));

and replace it with

var filter=new RegExp("^"+text.replace(/([\?\[\]\{\}\(\)\+\*\\])/g,"\\$1"));

 

Answer posted by sirisha on Sep 24, 2009 20:38
Thank you so much. its working now...