Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8916035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:07:52+00:00 2026-06-15T05:07:52+00:00

Im lost here, and need advice. My situation: with folowing code I change default

  • 0

Im lost here, and need advice. My situation: with folowing code I change default items limit in module:

<form method="get" style="text-align:center;">
            <input type="hidden" name="lastrecepes" value="">
                <button type="submit" value="24" id="limit" name="limit" onclick="change();" style="width:200px;margin:20px 0 20px 0;"/>change limit</button>
                <script>
                function change(){
                var elem = document.getElementById("limit");
                if (elem.value=="24") elem.value = "36";}
                </script>

            </form>

helper.php:

public static function getLists(&$params)
    {
        $total_items = ($_GET['limit']) ? $_GET['limit'] : $params->get('count');
        if ($_GET['limit']) $params->set('count',$_GET['limit']);
            $content_source = $params->get('content_source','joomla');

    }

my link changes to: http:*/project/?lastrecepes=&limit=36
and it works, but when im trying to add another filter like:

<button type="submit" value="0" id="skip_items" name="skip_items" onclick="change1();" style="width:200px;margin:20px 0 20px 0;"/>more</button><script>
                function change1(){
                var elem = document.getElementById("skip_items");
                if (elem.value=="0") elem.value = "15";}
                </script>

it changes limit to old value, and url looks like: http:*/project/?lastrecepes=&skip_items=15

If i manually add those together they work fine: http:*/project/?lastrecepes=&limit=36&skip_items=15

can anyone help me with it, i dlike to save first filtering result when another filter comes in. Sorry for my bad english hope u can understand me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:07:54+00:00Added an answer on June 15, 2026 at 5:07 am

    Well of course the limit will change back from 36 to 24 when you refresh the page, because you are not saving the change anywhere. If You go to http:*/project/?lastrecepes=&skip_items=15, the limit is 24, because that is the default value.

    What you have to do is save the limit to a cookie or a session (depending on your needs) when you change it and then check the cookie / session every time when page loads for a current limit value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are a bit lost here. We need to make our app installable on
I am not an ASP developer so pretty lost here. Need to set up
I may be hopelessly lost here, but having come from a MVC.NET world I
I'm a little bit lost here. In my nginx conf file I want a
I'm a bit lost with Subversion (1.5+) here: I modified the trunk in my
Something in here is incompatible with PHP5, but I am totally lost as to
I'm a little lost on moving a div within the dom. I basically need
I'm lost here. Here's the problem and I think it's NP-hard. A center is
I guess I'm looking more for advice than any specific coding solutions. Here's the
I have an ASP.NET ascx control. In the code behind file I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.