neXib neXib - 3 years ago 139
jQuery Question

How can I get the table filter plugin to ignore the hash in the url?

I am using the PicNet Table filter for filtering data in a table. It's working very well. A problem I've encountered however is that it's conflicting with my internal tab navigation. The tab navigation (jQuery UI) uses e.g. or to navigate between tabs. The table filter on page #2 picks up this and adds 2 to the input field of the filter.

I have tried a lot of trickery to clear it, but I haven't found a feasible solution. Is there a way I can modify the script to ignore the hashes altogether, or make the hash invisible for it somehow?

Answer Source

I solved this by using the function running before the filtering happens (filteringRows), and checking for the hash value from the url, if it was the culprit I just removed it and made a standard text as the value for the text field until the user clicks it to enter his own values.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download