Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

REFRESF BROWSER  RSS feed

 
sandeep balyan
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All
Hi thsi time an interesting thing I wanna ask
I want my user not to refresh my Page ..means i do not want him to refresh ..
Iam using JSP /HTML and Oracle
pls tell any soln
bye an dtake care
sandeep
 
Rehan Malik
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what I know, you can't prevent a user from pressing the Refresh button.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, actually you can remove the button bar entirely using JavaScript on some browsers, but that's going a bit far. Why don't you want the user to refresh their page?
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
sridhar satuloori
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As kyle said we can use JavaScript to remove (but you can use them through shortcuts. and through context menu) from appearing. But i dont think it will serve your purpose.
one work arround could be... just set some variable in the cookie say xxxreloadable=false for the first time you are accessing xxx page. if the request comes to the same(i.e., xxx) page and xxxreloadable is false, then resend with an error. if its for other page just ignore the reloadable.
Sridhar
Originally posted by sandeep balyan:
Hello All
Hi thsi time an interesting thing I wanna ask
I want my user not to refresh my Page ..means i do not want him to refresh ..
Iam using JSP /HTML and Oracle
pls tell any soln
bye an dtake care
sandeep

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!