paulopmx / Flexigrid

Lightweight but rich data grid with resizable columns and a scrolling data to match the headers, plus an ability to connect to an xml/json based data source using Ajax to load the content.
689 stars 539 forks source link

doSearch method should url encode values #118

Open alvinlin123 opened 11 years ago

alvinlin123 commented 11 years ago

It's possible we search values with '%' in it. Currently flexgrid will send the '%' character as is to the back-end server, which causes issues during decoding.

Possible solution is to do this in the doSearch() function? p.query = encodeURIComponent($('input[name=q]', g.sDiv).val()); p.qtype = encodeURIComponent($('select[name=qtype]', g.sDiv).val());

paulopmx commented 10 years ago

its basically utf8 encoded it should be possible