WHAT I HAVE SO FAR:
I have an HTML form of 48 textbox fields. Each box represents the user's preference for something I will be asking him about. The user can choose to enter as many as 48 preferences or leave as many blank as he wants (so the range for textboxes with values is 0 to 48).
WHAT I WANT TO CONTRACT YOU FOR:
I want to develop a script or small web program to allow users to do the following 3 things while they are still on my web page. This is what I have in my head but I am open to your expertise if there is a better way.
1. Transfer only the textboxes with non-null values into a two-column table, leaving out the null textboxes. So if the user only filled out 350 of the 48 values then the table will only have 30 rows. The first column of the table will just have numbers from 1 to n, with n being whatever number of textboxes were passed to the table. You are welcome to just generate the table client-side because I'd like it to be anonymous anyway. You don't even have to hide the table because the user will find it useful to print out the preferences table after it is generated.
1. | Preference 1
2. | Preference 2
n. | Preference n
2. At this point, I want to present the user with forced choices between his preferences (sort of like how personality tests force you to choose an answer). I would prefer to have the user presented with just one face-off at a time, perhaps he can click on one of two buttons and then those buttons disappear and the next face-off appears. If this is too complicated for the price I'm asking then you could spit out radio-button faceoffs all at once, but I would prefer to avoid that if possible. I envision this as sort of a rapid-fire presentation, where the user sees the two choices and clicks based on his initial reaction.
Row 1's Preference vs. Row 2's Preference (User Clicks Choice)
Row 1's Preference vs. Row 3's Preference (User Clicks Choice)
Row 1's Preference vs. Row n's Preference (User Clicks Choice...etc.)
Row 2's Preference vs. Row 3's Preference
Row 2's Preference vs. Row 4's Preference
Row 2's Preference vs. Row n's Preference
Then Row 3 versus all remaining preferences, then Row 4, etc. until all preferences have been compared with each other just 1 time.
This is called "forced ranking" and is used in the field of human resources, but I am applying it to something else here. I realize that this will be over 1000 choices but I have already cut down the fields from 80 so I don't think I can go lower.
3. After the user has been forced to make choices between each preference, I would like to give him some very basic output that shows the counts for how many times he chose each preference. This could be a simple ranked list with the count numbers in parentheses or a table. No need for other stats. This can all be done right on the web page.
Please let me know if you have questions or better ideas about how to do all of this. I would definitely like it to be on the web page and not a stand-alone program though.