Welcome Guest, Not a member yet? Register   Sign In
CJAX Vote System Problem with multiple clicks
#6

[eluser]CroNiX[/eluser]
It might be because you are using sessions (which uses a cookie) while using ajax. There are a number of problems with ajax and sessions in CI. Does it prevent voting if you navigate to a different page on the site after voting and then come back to it and try to vote again?

It might work better if you set a flag in the db that the user voted for that already and then check that when the data is submitted before accepting the vote.

Sorry, again I don't know anything about cjax. If it were jquery you could just use $(selector).off('click') to remove the click event.


Messages In This Thread
CJAX Vote System Problem with multiple clicks - by El Forum - 08-17-2014, 07:01 AM
CJAX Vote System Problem with multiple clicks - by El Forum - 08-17-2014, 08:38 AM
CJAX Vote System Problem with multiple clicks - by El Forum - 08-17-2014, 11:33 AM
CJAX Vote System Problem with multiple clicks - by El Forum - 08-17-2014, 11:54 AM
CJAX Vote System Problem with multiple clicks - by El Forum - 08-17-2014, 12:34 PM
CJAX Vote System Problem with multiple clicks - by El Forum - 08-17-2014, 01:27 PM
CJAX Vote System Problem with multiple clicks - by El Forum - 08-17-2014, 02:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB