Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Anthony Baldo

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anthony Baldo in reply to:
    to possible? + Showing when filter is active
    #88009

    Ok, I’ll just write my own function to detect the changes I need. The Ajax detection might help.

    Thanks!

    Anthony Baldo in reply to:
    to possible? + Showing when filter is active
    #87979

    When I use the filter and select and option, there is no class that activates anywhere on the filter indicating activation/use. It only disables for a moment and then returns to normal. Also just to let you know that link you sent about the :parent selector is a hypothetical suggestion of css. The first line is there are no parent selectors in CSS.
    <br />
    But anyway all I want to know is if there is anywhere in the filter functions that goes off when the filter is used/active so that I can trigger other things to happen on the page when the filter isn’t showing “all results”.

    Anthony Baldo in reply to:
    to possible? + Showing when filter is active
    #87720

    Ok, I see what you are saying with the checkboxes. For the second one I don’t mean on an individual option. I mean I want to change the DOM based on if the entire filter has run or if it “clear”(showing all options). So as an example. I have the filter surrounded like this:

    
    <div id="filter_holder" class="unactive">
    <!-- filter is here -->
    </div>
    

    And when someone activates an option or multiple options on the filter I want to append a class to surrounding holder like:

    
    <div id="filter_holder" class="active">
    <!-- filter is here -->
    </div>
    

    This way I can show the users with extra css that the filter is narrowing down the results they are seeing.

    Anthony Baldo in reply to:
    to possible? + Showing when filter is active
    #87689

    I just noticed that the title of the topic was parsed out, it was supposed to say “select to ul possible?” so that might have made it a little confusing.

    What I am hoping is to make it so that instead of the filter using the select elements and the code being:
    <select name="input_name"><option value="1"><option value="2"><option>
    It would render the drop downs as unordered lists so that they could be custom styled. like:
    <ul name="input_name"><li>option 1</li><li>option 2</li></ul>

    As for the second question, what I meant is so that when the form is submitted/changed by the user I want to append a new class to the filter/elements that shows that its active and remove it when the filter is just showing the default. Is there a specific hook I can use for when the form submits and has values vs when the form clears and returns to default.

Viewing 4 posts - 1 through 4 (of 4 total)