What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

When I vote on a post and immediately refresh or quit the page, my votes are lost. It seems the issue is due to some Ajax calls that can not be completed.

My ping durations may be a factor to Stack Overflow servers which is about 270 ms, as well.

So should there not be a warning for the issue? Like while writing a post, before attempting to quit or refresh the page:

Enter image description here

If I am guessing right, the issue can be solved by putting my_alert_js_function() on .ajaxStart( handler() ).

Please could we do this? Each time I do my action fast, I feel go back and check again as Oded said in his comment.

The issue seems highly related to the quality of the ISP provider and if the Internet connection is shared. At work I can easily make the issue happen.

share|improve this question
6  
My first reaction to your first paragraph was - "Don't do that". If you vote, make sure the vote took before refreshing/closing. –  Oded Jan 16 '12 at 18:44
    
What do you mean by your votes are "lost"? Just that they aren't applied when you navigate away before the vote has been applied? –  Andrew Barber Jan 16 '12 at 18:45
1  
@Oded If users are supposed to be aware of when votes "take", the interface shouldn't preemptively mark the vote buttons. Way back in the day Reddit dealt with this by saving votes in cookies so that if they failed they would still be applied the next time the user loaded a page. I thought this was a good trade-off between interface responsiveness and accuracy. That might not be a perfect fit here but I'd be very happy if something similar could be worked out. –  Jeremy Banks Jan 16 '12 at 19:08

2 Answers 2

up vote 3 down vote accepted

Being on a Network that has occasional second-long hiccups, I think this is a good idea. If voting-related Ajax calls are not completed, something like this should be shown. Nobody wants to lose votes due to latency.

share|improve this answer
1  
But why not a visual effect when it did happen? If you are on a slow network, you can choose to pay attention to it without the use of a popup. –  Nanne Feb 12 '12 at 12:35
    
@Nanne I am on a network that is usually very fast, but occasionally takes 5-6 seconds for a request to complete. I'd be happy to have a dialog in those cases. –  Pëkka Feb 12 '12 at 12:38
    
I understand, but with a "passive" visual solution you do have the option to choose to check for the "it worked" mark, so it would have the same feature as the proposal. On the other hand, I would have the option to ignore the feature, which I wouldn't have if it was "forced" (seems a bit too heavy a word) with a popup. That way several interests can be met at the same time, instead of choosing one preference above the other. –  Nanne Feb 12 '12 at 12:46

Adding a popup like that would be really annoying I think.

Consider users that see something they think merits an upvote, but are not very interested in hanging around. A valid option would be not to indicate when a vote ISN'T completed (by a blocking popup), but to indicate when a vote IS completed (a visual thingy around the votescore would do I guess).

In this way you can hang around and check if your vote was cast, but you are not 'blocked' from browsing away if you want to. This way a user can choose whether to wait for it or not, without being confronted with it through a popup.

share|improve this answer
    
Hmm, might be we are miscommunicating here? Be aware that it says * NOT to indicate when it ISN'T completed*. That is what happens at the moment, right? –  Nanne Feb 12 '12 at 12:22
    
I'm not sure what you mean. Anyway: I think the best option would be a mark to indicate you have achieved success (like I typed). If you feel the need, you can pay attention to it and only leave if it is marked, if you don't you can ignore it. –  Nanne Feb 12 '12 at 13:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .