Currently, you just drop down the list, select a value and let go. But, alot of users seem to "accidentally vote wrong" by letting go over the wrong value.
I would like instead to have a "Rate this Thread" or "Go" or "Submit" (or whatever) button next to it. Less user error.
This is the current code:
{SECTION: rate_thread rate thread select}
<form id="RateFrm">
<select onChange="javascript: if (this.value) topicVote(this.value, {VAR: frm->id}, \'{DEF: s}\', \'{VAR: usr->sq}\');">
<option>{MSG: rate_thread}</option>
<option value="1">1 {MSG: rate_worst}</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5 {MSG: rate_best}</option>
</select>
</form>
{SECTION: END}
My old code looked like this in the old version:
<form action="{TEMPLATE: rate_thread_lnk3}" name="vote_frm" method="post">
<select name="sel_vote">
<option>{MSG: rate_thread}</option>
<option value="1">1 {MSG: rate_worst}</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5 {MSG: rate_best}</option>
</select>
<input type="submit" class="button" name="btn_vote" value="{MSG: rate_this_thread}">
<input type="hidden" name="rate_thread_id" value="{VAR: frm->id}">{DEF: _hs}
</form>
Since I know 0 about javascript, perhaps anyone could enlighten me how i make the "current" code use a button and some "onClick" instead of the current "onChange"
[Updated on: Mon, 27 November 2006 21:30]
Report message to a moderator