Fieldtype, Module

Developer
Supported

VWM Polls

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Victor Michnowicz

     

You must be logged in to post.

Parsing users choice into AJAX

Feature Request

Terralemon
Terralemon

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
# 1
Developer
Victor Michnowicz

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
# 2
Developer
Victor Michnowicz

I updated VWM Polls to include the previous votes in the Ajax response.

Terralemon
# 3
Terralemon

Thanks!