Search fails after 4 characters - DataTables JavaScript library
Search fails after 4 characters - DataTables JavaScript library
netingenuity
Posts: 3Questions: 0Answers: 0
I posted this bug on http://wordpress.org/support/topic/plugin-wp-table-reloaded-search-fails-after-4-characters?replies=2#post-1715265
Can anyone explain why Search fails after 4 characters
On http://66.147.240.198/~iytaorg/teachers-directory/find-an-integral-yoga-teacher
It searches well--up to the fifth character.
Try putting in Washington or Pittsburgh. You'll see teachers listed until you get to the fifth character. Put in the whole word, and none show up.
-----------
And the developer of WP-Tables, Tobias wrote:
Hi,
this seems to be an issue with the DataTables JavaScript library (which offers the search function), as I have heard similar issues before.
Unfortunately, there's nothing I can do, as I don't know the details of the library. Sorry :-(
Instead, I'd ask you to post your question/bug report in the DataTables forums at www.datatables.net/forums.
Best wishes,
Tobias
Can anyone explain why Search fails after 4 characters
On http://66.147.240.198/~iytaorg/teachers-directory/find-an-integral-yoga-teacher
It searches well--up to the fifth character.
Try putting in Washington or Pittsburgh. You'll see teachers listed until you get to the fifth character. Put in the whole word, and none show up.
-----------
And the developer of WP-Tables, Tobias wrote:
Hi,
this seems to be an issue with the DataTables JavaScript library (which offers the search function), as I have heard similar issues before.
Unfortunately, there's nothing I can do, as I don't know the details of the library. Sorry :-(
Instead, I'd ask you to post your question/bug report in the DataTables forums at www.datatables.net/forums.
Best wishes,
Tobias
This discussion has been closed.
Replies
Also, "Fair-fax" by itself is split, but where it exists with other cities as in "Reston, Hern-don, Fairfax" it is not split and so the search for Fairfax succeeds for these rows. And if, for example, "Washington" is copied out of a table cell and pasted into the Search box, the search works since the non-displaying character is then included in the search.
These hyphens also show up when the data is pasted into Microsoft Word and "Show/hide paragraph marks and other hidden formatting symbols" is toggled on.
I hope this helps track down the root cause of this problem.
57 61 73 68 C2 AD 69 6E 67 C2 AD 74 6F 6E
It would appear that the display of this character (which by UTF8 is http://www.unicodetools.com/unicode/codepage-utf8.php?page=52 ) depends on the terminal, and font being used. For example on the Firefox console I can't see it - which is why it didn't make sense initially. In my text editor they show up as hyphens.
So I'd suggest having a look at your csv file in a hex editor and seeing if these characters are in there.
Allan
TIA!