readmsgs.cpp text.h text_defaults.c
Log Message:
Implemented support for multiple-answer polls/ballots.
Re: src/sbbs3/readmsgs.cpp text.h text_defaults.c
By: rswindell to CVS commit on Mon Aug 14 2017 03:18 am
readmsgs.cpp text.h text_defaults.c
Log Message:
Implemented support for multiple-answer polls/ballots.
Are JavaScript bindings for this available? Or will that be added later?
Are JavaScript bindings for this available? Or will that be added
later?
Already there. See postpoll.js for an example of how to create a multiple-answer poll. The same "votes" header property used in a ballot is used in a multi-answer poll (but for a different purpose).
Re: Multiple-answer polls
By: Digital Man to Nightfox on Mon Aug 14 2017 12:56 pm
Are JavaScript bindings for this available? Or will that be added
later?
Already there. See postpoll.js for an example of how to create a multiple-answer poll. The same "votes" header property used in a ballot is used in a multi-answer poll (but for a different purpose).
I'm mostly interested in how to answer a multi-answer poll. What different purpose does the votes property have for a multi-answer poll?
Can the votes
property have a bit set for each user's answer?
In a poll message, the "votes" property specifies the maximum number of answers/votse per ballot (0 is the equivalent of 1).
Can the votes
property have a bit set for each user's answer?
Exactly, that's how it works now with single-answer polls too. Just with a multiple-answer poll, the user can toggle multiple answers (up to the maximum specified by the pollster).
Sysop: | Ragnarok |
---|---|
Location: | Dock Sud, Bs As, Argentina |
Users: | 136 |
Nodes: | 10 (0 / 10) |
Uptime: | 08:33:18 |
Calls: | 15,171 |
Calls today: | 4 |
Files: | 19,857 |
D/L today: |
18 files (854K bytes) |
Messages: | 1,691,507 |