I have a relational database and a thread/comment system. I'm having trouble thinking of a way of tackling upvoting, as the page would have to be refreshed for the server to notice any changes.
I've created a new table, UPVOTESTHREAD which consists of two foreign keys, user ID and thread ID, and a primary key which is the combination of the two. The only way I could actually insert into this though is if I submit some POST data. I'm afraid that this would feel clunky to the user, and it would also mean that the user would have to scroooollll down back to where they were just looking at. This can't be the correct solution, right? Is there a better way of doing this?