Results 1 to 1 of 1

Thread: Filter Ads on Front Page with JQuery

  1. #1
    Thread Starter
    Expired Customer arisma's Avatar
    Join Date
    Mar 2017
    Thanked 0 Times in 0 Posts

    Filter Ads on Front Page with JQuery

    Hi everyone!

    So I'm trying the following thing:

    I gave specific classes to all ads.

    For Ads with the currency EUR: <div class="post-block-out eur" ... ></div>
    For Ads with USD: <div class="post-block-out usd" ... ></div>

    Then I created two buttons (<button>) on the Front Page.
    Button 1: Only show EUR
    Button 2: Only show USD

    Now this is what I want:

    When I click the button EUR, I want the front page only to show ads with the currency EUR.
    When I click the button USD, I want only to see USD ads.

    This should work with JQuery/AJAX - so the ads should load automatically without refreshing the whole page!

    I tried this tutorial:
    But the Ads (Divs) doesnt align automatically (as they should) when I click the EUR button for example. When I scroll (I'm loading ads automatically when scrolling down) the ads align only vertically and again USD ads are displayed.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: July 10th, 2015, 01:09 AM
  2. Grid/List View jQuery + Categories Filter
    By hope in forum Help Using Vantage (Legacy)
    Replies: 2
    Last Post: November 20th, 2014, 11:12 AM
  3. Dimitris Old jQuery version if 'Google CDN jQuery' is activated?
    By per4mance in forum Report JobRoller Bugs
    Replies: 2
    Last Post: March 10th, 2013, 03:27 PM
  4. [MOD NEEDED] Hero unit (like bootstrap a hero) wanted on front page (only front page)
    By ironbit in forum JobRoller General Discussion
    Replies: 0
    Last Post: February 20th, 2013, 02:06 PM
  5. How to remove filter form from front page
    By chlpp in forum JobRoller General Discussion
    Replies: 3
    Last Post: April 3rd, 2011, 05:45 PM