Datatables 1.7.x search does not find some rows in Opera
Datatables 1.7.x search does not find some rows in Opera
pluggy14
Posts: 3Questions: 0Answers: 0
Hi Alan,
I have found a rather very obscure but 100% reproducible bug: Under certain circumstances (which I could not identify yet), datatables reports no matching rows when using the built-in search field. This bug only occurs in Opera, but I was able to reproduce it with one given table on 2 different computers.
I've tried to reduce the problem as much as possible, you can see a demo here:
http://www.logmytime.de/content/downloads/datatables/search.html
Open the web page above with Opera (I've tried 10.63) and search for "r". Several rows contain that letter, but none is found. Doing the same with any other browser works fine.
Stange enough, I have some tables on my website where the search works fine in all browsers. It's just this one that does not work at all in Opera.
I haven't tried this with Datatables 2 yet.
Thanks a lot for your help,
Adrian Grigore
I have found a rather very obscure but 100% reproducible bug: Under certain circumstances (which I could not identify yet), datatables reports no matching rows when using the built-in search field. This bug only occurs in Opera, but I was able to reproduce it with one given table on 2 different computers.
I've tried to reduce the problem as much as possible, you can see a demo here:
http://www.logmytime.de/content/downloads/datatables/search.html
Open the web page above with Opera (I've tried 10.63) and search for "r". Several rows contain that letter, but none is found. Doing the same with any other browser works fine.
Stange enough, I have some tables on my website where the search works fine in all browsers. It's just this one that does not work at all in Opera.
I haven't tried this with Datatables 2 yet.
Thanks a lot for your help,
Adrian Grigore
This discussion has been closed.
Replies
That is exrtemely odd! Thanks for flagging that up - I'll take a close look at that shortly and get back to you.
One quick thing - there isn't a DataTables 2 (yet!). TableTools 2 which is a plug-in for DataTables was released recently though :-)
Allan
What I would suggest trying is with a local copy of DataTables take line 4272 ( sSearch = sSearch.replace(/\n/g," ").replace(/\r/g,""); ) and move it down one line (i.e. just after the brace). Does that fix it?
Allan
Thanks for your reply.
I'm running version 1.71 at my server (just hotlinked the minified version 1.72 from your server for demo purposes), and I could not find the line in my source code.
Could you let me know where I can download version 1.72 or what line I have to look out for in v. 1.71 ?
Thanks,
Adrian
Thanks,
Adrian
You can grab 1.7.2 from: http://datatables.net/releases/DataTables-1.7.2.zip (and .1 for 1.7.1 :-) ) if you want it - the line should be more or less the same (I can't remember changing it - although there is a comment in there about IE and Opera which I do remember adding - that went into 1.7.4.
Allan
I applied that fix a while back and it was working fine.
I just upgraded today to 1.8.1 and this issue seems to still be here.
What would you advise?
Best regards,
Seb
I have some rows that I cannot find when using Firefox, and it works normally in Internet Explorer (strange times I tell ya).
- both 1.8.1 and 1.8.2 give the same results
- the "unfilterables" are of various types, some inside or containers, some inside the TD directly
- IE8 Standards ok
- Firefox Fail
- HTML v5 validated (except minor details as additional non-standard attributes on dom elements, empty title tags and that is all)
- CSS who cares but it validates on w3c as well.
- the data comes from an ajax call in json, utf8 encoded, the output is correct (i.e. the values sent through json, echoed by jquery are the same as those in the db)
- even very simple data fails (like 5 digit numbers)
- firebug gives no errors
Thanks for your help,
Morg.
Sure thing is it works in IE, could there be an IE only 'behaviour' that causes it to work or ??