The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS javascript help – difficulty level = high

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #38627

    Here is my issue. I have a gallery on this page

    at the bottom of the page, there is a pagination. If you click on the pagination to change to another page, it does work. if you then choose a different category in the sortable, it will change categories but stay on the currently selected page. So if I choose category “Games” and then switch to page two of that category, then choose category “Science”, you will see that the currently selected page still shows as page two. I want to try to get the pagination script to switch back to page one when a new category is chosen. What do you think? Can you help?


    The trick is to add something in your click function of the “filters”, so you trigger an action on the pagination there.
    What I rapidly found working :
    $('.simplePageNav1 a').click();
    to trigger a click on page 1
    Seems to work fine:
    hoping this help
    you’re welcome


    I think you have two different functions: one for the numbered pagination and one for the filters. Your pagination one is first, and there is no test to check the filters.

    With the .click() jQuery method you can emulate the “click event” on the “page one” of the pagination.
    Done at the right time in your function for the filters., it will send a message to your pagination function.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.