• Hi! I type something into the search field on a recursive directory file away table display containing 100~ files, and it works just fine for the first search and narrows the files down to the ones matching the search query.

    However, when I then remove the query text I typed into the search box to return to my normal pageinator original file list state (before the search), it populates the browser with the entire list of files and as a result, crashes the JQuery script in my browser.

    Here is my File Away shortcode for this:
    [fileaway type=”table” paginate=”true” pagesize=”10″ searchlabel=”Search” mod=”no” redirect=”true” fadein=”opacity” flightbox=”multi” nolinksbox=”true” recursive=”on” excludedirs=”staff” showto=”administrator,subscriber” heading=”Support Files” hcolor=”green” color=”blue” iconcolor=”blue”]

    Any idea how to fix this? I’m basically using it as a search for my support files in sub-directories. I originally intended to use the directory table view, but alas I can’t search for files within the folders from the root. 🙁

    https://wordpress.org/plugins/file-away/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author thomstark

    (@thomstark)

    The jquery I use for the table search is a third-party plugin. I’ve tested it with well over 500 files in the table, and jquery has never crashed for me. I’m not exactly sure what that even means. Does it do it on multiple computers/devices?

    Thread Starter ridai

    (@ridai)

    Hmm not sure I’ve only tested it on my work PC. It’s running a localhost WordPress installation, it seems to attempt to re-populate the entire table several times over upon removing my search query from the search bar. Firefox then asks me if I wish to stop the script that has frozen my browser.

    It could be my other plug-ins conflicting so I’ll have to disable them and try again when I get the chance. Thanks for the reply though and sorry for such an abstract problem!

    Thread Starter ridai

    (@ridai)

    Still the same problem on this PC. If it helps, the steps I take are:
    1. It initially looks like this http://i.imgur.com/HGltbwL.png
    2. I type Harris into the search box and it finds the 5 files I have for the string “Harris”
    3. I then proceed to remove the string I typed into the search box
    4. The entire page is filled with the 400+ files I have in those directorys, at this point it freezes and shortly after displays the message:

    “A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

    Script: http://localhost/wordpress/wp-…theme/js/jquery-1.10.2.min.js:7″

    If I click “Continue” it will freeze for another second, and shortly after return to it’s initial state in the screenshot.

    Seems like my browser is getting overloaded when the huge amount of files come back for a second.

    To be honest I prefer the directory views but I can’t search files within directories that way, you have to click through them and search into each folder. Is there any way to have the search all files feature, and still have directory views?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Search Crashes JQuery’ is closed to new replies.