GithubHelp home page GithubHelp logo

Comments (4)

craigivemy avatar craigivemy commented on August 15, 2024

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.

jrioromero avatar jrioromero commented on August 15, 2024

I have the same issue. Do you know how to solve it? Thanks

from jquery-fastlivefilter.

donShakespeare avatar donShakespeare commented on August 15, 2024

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.

 avatar commented on August 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.