Confirmed error in Ajax Voting Script
Posted: 28 Jul 2019, 01:05
Although it took me about eight hours to get it working, the Ajax Voting Scipt is very useful, and the best freeware script of its kind that I've come across.
On the demonstration page on this site, the green vote appears correctly - on the left of the image - and the red vote appears on the right. However - in the downloaded version they are back to front - the red appears on the left, and the green appears on the right.
That's due to a coding error in voting.js ...
Line 42 should be:
and Line 39 should be:
Cheers,
Larry
On the demonstration page on this site, the green vote appears correctly - on the left of the image - and the red vote appears on the right. However - in the downloaded version they are back to front - the red appears on the left, and the green appears on the right.
That's due to a coding error in voting.js ...
Line 42 should be:
Code: Select all
ivotings[elm_id].innerHTML = '<h4>'+ vote+ '</h4><div class="vot_pm v_plus"'+ clik_up+ '>'+ v_plus+ '</div><div class="v_minus"'+ clik_down+ '>'+ v_minus+ '</div>';
Code: Select all
ivotings[elm_id].innerHTML = '<div class="nvotes">Votes: <b>'+ nvotes+ '</b></div><h4>'+ vote+ '</h4><div class="v_plus"'+ clik_up+ '> </div><div class="v_minus"'+ clik_down+ '> </div>';
Larry