Ok, I tried:

*var filter = new OpenLayers.Filter.Comparison(
  { type: OpenLayers.Filter.Comparison.LIKE,
    property: 'name',
    value: input }
);
filter.value2regex( "-","." ); *


I wanted to escape those two characters from any value. but nothing changes.
any input contains "-" or "." will not be filtered!!



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/OpenLayers-Filter-Comparison-LIKE-doesn-t-filter-special-characters-tp5025321p5025796.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to