VWM Polls
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Victor Michnowicz
Parsing users choice into AJAX
Feature Request
Terralemon
|
Posted: 19 February 2014 09:10 AM |
|
|
|
Hi Victor,
How to parse the users choice in to the AJAX/JSON. I have the results now shown through your AJAX script (choices + percentages) but want to add a class to the users choice.
Harold
|
|
|
Victor Michnowicz
|
Posted: 20 February 2014 09:49 AM |
# 1
|
|
Developer
|
Currently, the AJAX response does not tell you the option the user voted for. I should be able to add that functionality shortly. In the interim it should be possible to use JavaScript to detect which option radio input the user clicked on. Then after the user votes and you get the Ajax response you can tell which option the user selected.
|
|
|
Victor Michnowicz
|
Posted: 20 February 2014 09:33 PM |
# 2
|
|
Developer
|
I updated VWM Polls to include the previous votes in the Ajax response.
|
|
|
Terralemon
|
Posted: 23 February 2014 11:38 AM |
# 3
|
|
|
Thanks!
|
|
|