Forums
This topic is locked
Classic ASP voting system... headache!!!
Posted 21 May 2011 23:07:00
1
has voted
21 May 2011 23:07:00 Dimitris Kouris posted:
Hi all,I have written a voting system that works within an iframe which is embedded in a page with lots of different client mini profiles (profile => iframe) so the page doesnt re-load when the voting has been completed.
All the action takes place within the source page of the iframe (rating.asp).
Once the voting has been completed a response "Thank you" appears under the clients profile, as it should be!
However, if I refresh the profiles page either the "Thank you" appears under all profiles of all clients and therefore disables the voting system for all the other clients OR... (using the same but modified script) once the voting has been completed it disables the voting system for all the clients rather than the client that has been voted.
I am using cookies to determined which client has received the vote (clients ID) and when the voting has been done I have also generated another cookie with the value = 1.
Based on that sort of line, any ideas how to make it work?
Thanks
Dimitris