Re: [appengine-java] Re: Disable 'refresh' in a page

2011-09-28 Thread Ikai Lan (Google)
I agree with everything everyone has said about disabling refresh. Don't interrupt basic browser functions. It's a bad idea. What problem are you trying to solve? There is probably a more intuitive way of doing this. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | tw

[appengine-java] Re: Disable 'refresh' in a page

2011-09-27 Thread Drew Spencer
I agree with Mat. Just tell your users not to refresh or give them no reason to. They aren't stupid. It's like when a site prevents me right-clicking - I hate that site and never go back. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java"

[appengine-java] Re: Disable 'refresh' in a page

2011-09-26 Thread Mat Jaggard
Someone tried to do this in my old company. The short answer is "No", the long answer is "This is a really bad idea". We set up an event which fired when the page was unloaded, this had the effect that when someone pressed F5 or refresh, they got an error message saying "Please be patient", howeve

[appengine-java] Re: Disable 'refresh' in a page

2011-09-26 Thread Dick Larsson
HTTP Status Code 204 is what you should use. It means that the server has processed the request but user agent's active document view should remain the same/should not change. response.setStatus(204); See w3.org for more info http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Best regards D