Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raghu on Nov 03, 2008 10:04
open dhtmlx forum
Grid filter

Hi,
i am getting this error when i try to
missing ; before statement
  • 21502341..2343
    • var text_value = "2341..2343";
    • mygrid.filterBy("0",function(a){
    •       return eval(a+text_value);
    •  });
Answer posted by Support on Nov 04, 2008 01:49
Most probably the problem is in
       eval(a+text_value);
the result expression is not valid js code, which cause mentioned error. 
Using eval is a bad practice, in most cases it can be replaced with more stable solution, without eval.