Comments (5)
Which version of IE?
On Dec 6, 2011, at 4:40 AM, baroso
[email protected]
wrote:
Your Plugin does not seem to work right in IE!
When I call up ...
http://anthonybush.com/projects/jquery_fast_live_filter/comparison/
... and type something, it shows the time but no results!
Reply to this email directly or view it on GitHub:
#3
from jquery-fastlivefilter.
It does not work at all on IE6 and IE7 because of the following error (on the page)
$("#fastLiveFilter .filter_input").fastLiveFilter("#fastLiveFilter .list_to_filter", {
callback: function(total) { fastLiveFilterNumDisplayed.html(total); },
});
IE6 and IE7 dislike the comma after the callback function ...
$("#fastLiveFilter .filter_input").fastLiveFilter("#fastLiveFilter .list_to_filter", {
callback: function(total) { fastLiveFilterNumDisplayed.html(total); }
});
IE8 ignores this error and seems to filter the list, but does not view the results!
I've not tested it on IE9 ...
from jquery-fastlivefilter.
I found the Problem ... IE doesn't know the "textContent" property of the "li" element!!!
http://stackoverflow.com/questions/1359469/innertext-works-in-ie-but-not-in-firefox
from jquery-fastlivefilter.
Here's a quick fix ...
... this ...
if ((li.textContent || li.innerText || "").toLowerCase().indexOf(filter) >= 0) {
... instead of this ...
if ((li.textContent || "").toLowerCase().indexOf(filter) >= 0) {
... but this needs to be tested in other Browsers!!!
I tested it and it works in: FF8, IE8, Safari4, Chrome5, Opera11
BEWARE ... you probably should be using the text() method of jQuery ... see the following posts ...
http://stackoverflow.com/questions/6272767/firefoxs-textcontent-doesnt-match-chromes-innertext
http://www.davidtong.me/innerhtml-innertext-textcontent-html-and-text/
from jquery-fastlivefilter.
Thanks, I'll put that in.
I don't really want to use text()
because it makes it 2-3 times slower. Accordingly to the posts, it wouldn't be much help for this plug-in anyway (e.g. it's not going to be used to filter <script>
tags, and differing behavior with regards to newlines won't affect the filtering process in a meaningful way).
That said, it would be possible to use text()
and have it be fast by caching up all the list item selectors, though memory usage may increase slightly in doing so. Will save that as a last recourse.
from jquery-fastlivefilter.
Related Issues (19)
- fading HOT 8
- Add option to highlight the keyword(s) in the string HOT 3
- Search not working on Tables HOT 1
- Filter is removing <a> tags from links HOT 1
- With very large lists, the DOM updates slowly when filtering up (clearing the query). HOT 6
- Possibility to have more than one input (add a selectbox or something)
- search on entire "nested" html markup HOT 1
- clear text button HOT 2
- Filter a set of tables based on text in a td of each table HOT 1
- Turkey "İ" problem HOT 1
- Reset x button does not work in IE HOT 1
- How to reinitialise plugin if DOM changes? HOT 4
- How to reverse the process, so that matching results are shown after being hidden HOT 1
- Unable to work due to error
- Support HTML5 search inputs
- options argument isn't actually optional HOT 1
- Accents HOT 4
- IE hiding all items HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-fastlivefilter.