Comments (4)
Did you ever find a solution to this? I have the same issue. Tabs update the content via ajax, once that has happened the filter no longer works
from jquery-fastlivefilter.
I have the same issue. Do you know how to solve it? Thanks
from jquery-fastlivefilter.
Put your initial filter init code in a function. Run this function whenever you need it.
E.g. I have an image gallery of 4000 images. If I delete 2500 images at once, or add another 3000, the function is ran in my delete callback.
Also using jQuery UI draggable, I run the function when an element s dropped in another div.
function runMyAwesomeFilter() {
// Activate fastLiveFilter w/ callback
var numDisplayed = $(".num_displayed");
$("#filter_input").fastLiveFilter("#list_to_filter", {
callback: function (total) {
numDisplayed.html(addCommas(total));
//do more stuff
//do more stuff
//do more stuff
},
});
}
call this whenever you need it runMyAwesomeFilter()
; at startup, after DOM change, etc.
from jquery-fastlivefilter.
@donShakespeare i think the problem in your solution is that all elements are cached each time you call that function. So if you call that function multiple times the overall javascript performance will drop depending on how many elements there are and how often the function was called …
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 reverse the process, so that matching results are shown after being hidden HOT 1
- Not working in IE HOT 5
- 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.