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 6241115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:42:02+00:00 2026-05-24T11:42:02+00:00

You know the select options like on ebay where they have ‘best match’, ‘time

  • 0

You know the select options like on ebay where they have ‘best match’, ‘time ending soonest’, etc. And when you choose an option the pages refreshes and returns the results in that order. How do you do that?

So far this is my idea, I was going to store a session variable for the user and base on what the session variable is upon each refresh/http request, I could determine what the user wants. So I’ve got the session variable read/write down on the python/django side, but I have no idea how to set the session variable on the user side, say with jquery or something cuz I was thinking when the user selects an option, jquery sets the session variable and does a refresh, which is picked up by my django view which returns the correct sorted results.

I’m not sure (and it probably isn’t) the best way to do this, so please help me out. Is there a better way of doing this and/or how do you do the client side of my idea?

Thanks !!!

  • 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-05-24T11:42:03+00:00Added an answer on May 24, 2026 at 11:42 am

    You could just set the ordering via GET. The template would have something like

    <a href="?ordering=best">Best match</a>
    <a href="?ordering=soonest">Ending soonest</a>
    

    The view would check request.GET and sort appropriately.

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

Sidebar

Related Questions

I'd like to know how to select options in a form that is formatted
I have a source file with a select form with some options, like this:
Can we Make a checkboxList using jquery like we fill the options in select
I would like to know how can we arrange the three select box, with
I would like to know if it's possible to create an infinite input select
I have the following: <html:select property=myObject.value> <html:options property='myMap(someKey)'/> </html:select> Where map(someKey) is set in
I have defined the following select list: <%= this.Select(Scope) .Options(Scopes.AllValues) // static property to
I have a standard select box which I'm populating using jquery by appending options,
I would like to know how to set default value on form_for select. My
I have a Zend_Form_Element_Select object, and about 3k select options. When the customer asked

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.