AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How Can I Prevent From The IExplorer to go back in press on

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
E.D.I
Guest





PostPosted: Tue May 15, 2007 9:39 am    Post subject: How Can I Prevent From The IExplorer to go back in press on Reply with quote



How Can I Prevent From The IExplorer to go back in press on the back
button
co's this defenetly mess up my game and its data base
in java jsp
Back to top
Lew
Guest





PostPosted: Tue May 15, 2007 4:58 pm    Post subject: Re: How Can I Prevent From The IExplorer to go back in press Reply with quote



E.D.I wrote:
Quote:
How Can I Prevent From The IExplorer to go back in press on the back
button
co's [sic] this defenetly mess up my game and its [sic] data base
in java [sic] jsp [sic]

Don't.

The back button is /client/ side behavior; you are coding on the /server/.
Furthermore, it is a control people are used to and should not be overridden.
Furthermore, every dodge I've seen to "disable the back button" causes
ridiculous complexity in the code and never works for everything intended.
Furthermore, there are better ways to accomplish not "messing up the game".
Look up "idempotent" as it applies to software.

Make your code work with the back button, not the other way around.

What /exactly/ do you mean by "mess up my game"? What /specifically/ happens
that you do not like?

The Token pattern is more likely to be a solution for you, as a way to achieve
idempotency.

"Disable the back button" is the foolish cry of people who have not thought
through their situation fully. I've seen it tried - it's a mistake. Do not
"disable" the back button. Control the navigation instead.

Here's an article that discusses a reasonable Javascript approach, and links
to "how do I prevent the user from submitting a form twice?" to teach idempotency:
<http://www.boutell.com/newfaq/creating/backbutton.html>

Google for more. GIYF. I googled "disable browser back button danger"; YMMV.

Do not "disable" the back button. Don't.

--
Lew

P.S., In English writing, questions are signified by the presence of the
question mark ("?") at the end of the sentence. You also don't need to
capitalize so many words; just the word "I", the first word of each sentence
and "proper nouns" suffices.

The word "Java" is a trademark and is capitalized. "JSP" is an acronym, and
every letter in it is capitalized.

P.P.S., Notice that I asked a question, regarding what specific problem(s)
happen(s) to your game from the back-up action.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.