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

  • Home
  • SEARCH
  • 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 3442090
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:37:44+00:00 2026-05-18T08:37:44+00:00

I would be so very grateful if someone could help me out! I have

  • 0

I would be so very grateful if someone could help me out! I have been searching the internet for ages now looking for a way to achieve the desired user interactivity mentioned below (perhaps there is a similar script available already that I don’t know of?).

The problem:

Supporting image: http://img.photobucket.com/albums/v291/Dark_Jessa/btn_instructions.jpg

There is a list of candidates, each with a circle next to them. When a user clicks inside a circle, a number will appear inside. This process will continue for all other circles, with numbers appearing in ascending order.

If a user changes their mind on the number they have given a circle, the user can click on the number and it will go away from the circle.

When the user clicks inside another circle, the number inside the circle will be replaced by the number that was being held by the cursor.

EXAMPLE:
The user wants “David MORGAN” to be their second choice. So the user will click inside the circle next to “David MORGAN”. The number ‘3’, which was previously in the circle, is now removed form the circle.

The user now clicks on the circle next to “Steve PRATT”, which has the number ‘2’ inside. The number ‘3’ which was attached to the user cursor has now replaced the number 2 upon click. The user is now invisibly holding onto the number ‘3’.

The next part I would like is for there to be a submit button. When the user presses the button, their circle choices will be displayed on the new page, so they can confirm the selection.

If they press the submit button, and all circles have not been entered, they will be taken to a page informing them of this.

I don’t need any of the data recorded permanently, just the choices recorded temporary on the confirmation.

Any ideas? :3

  • 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-18T08:37:45+00:00Added an answer on May 18, 2026 at 8:37 am

    A rank should be unassigned, assigned to a candidate, or held “by the mouse” for assignment. Code something that puts each rank in one of these three states.

    For example, use two (non-global) variables, (e.g.) nextRank and nowRank. The value of nextRank means all ranks >= nextRank are unassigned.

    When the user clicks on an empty circle:

    1. if nowRank is a positive integer, assign the candidate the rank nowRank and set nowRank to 0
    2. else assign the candidate nextRank and increment nextRank

    When the user clicks on a filled circle,

    1. if nowRank is a positive integer, swap the candidate’s rank and nowRank (if non-zero)
    2. else set nowRank to the candidate’s rank and clear the candidate’s rank.

    Since this is a homework questions, here’s another scenario for you to consider: clicking a ranked candidate unassigns that rank, but won’t assign a previously unassigned rank. Ranks are only assigned when a candidate has no rank. How would you implement this?

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

Sidebar

Related Questions

I have just started using Boost 1.36. These libraries would be very useful in
What would be a very fast way to determine if your connectionstring lets you
I would like to design very high availability(never take server down, roll out features
I have been having some trouble finding a good way to output just the
I've been fooling around with code for ages on this one, I would be
This would be very handy as typecasting gets boring fast.
It would be very useful to be able to overload the . operator in
While it would be very convenient to use inline functions at some situations, Are
This is something that I think would be very useful. Basically, I'd like there
I found this wonderful NSManagedObjectID. This would be very good for referencing an Entity/NSManagedObject/NSEntityDescription,

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.