473,396 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Refreshing of page using refresh icon should remain on same page

Hi,

I am working on one web application . when i refresh page using refresh icon in a web browser it is taking me to index.jsp page i.e starting page.

Here my requirement is to stay on the same page when i refresh the page using refresh icon or F5 presented in tool bars.

I have disabled F5 button , now it is not effecting my web page. Now i want solution for Refreshicon.

could you please provide me solution as soon as possible.............

thanks and regards
prasanna
Sep 28 '07 #1
8 5888
gits
5,390 Expert Mod 4TB
hi ...

this is impossible ... its a browser feature that you cannot control ... but however: you may use the onbeforeunload-event to call some javascript code that you want to have executed when the page is to be unloaded ...

kind regards
Sep 28 '07 #2
hi ...

this is impossible ... its a browser feature that you cannot control ... but however: you may use the onbeforeunload-event to call some javascript code that you want to have executed when the page is to be unloaded ...

kind regards

Hi,

I have one doubt when we are veiwing a web page ,if we right click on the web page we find some options like select,copy,paste, refresh ....etc ,if user select refresh from that options after the page get refresh the page still remain on the same page can we get this functionality when we click on refresh icon...
Sep 28 '07 #3
gits
5,390 Expert Mod 4TB
?? ... what do you mean with that ... when we refresh a page it stays the same page ... i assume you have one page index.jsp and the user is doing something on it where you update the page with new content depending on his actions. when you click refresh it starts with the initial index.jsp? or do you use frames?

kind regards
Sep 28 '07 #4
?? ... what do you mean with that ... when we refresh a page it stays the same page ... i assume you have one page index.jsp and the user is doing something on it where you update the page with new content depending on his actions. when you click refresh it starts with the initial index.jsp? or do you use frames?

kind regards

Let me explain clearly

we are using frames of three one is titlepage.jsp which will be in top of the frame

second one is contentpage.jsp which will be in left of the frame , it contains a menu options

Third one is desriptionpage.jsp which will be in right of the frame , it contains a default home page with images.

these three frames are into one frame set, whole this page is called as indexpage.jsp

user will come to this page from login screen once he enter correct username and pass word.

when ever user select transaction from left menu he supposed to go to related page, this also going fine but if user refreshes using refresh icon in that transactionpages ,it is taking to indexpage.jsp

But this not happening when we refresh transactionpages using rightclick.


now my problem is i want to remain on same transactionpage when user refresh page using refresh icon

kindly provide me solution if possible with sample code
Sep 28 '07 #5
gits
5,390 Expert Mod 4TB
... hi ...

i assume you use IE? there right click-refresh refreshes the current right-clicked frame ... when using mozilla or FF the option is called that way ... when you use the reload-button in the menubar the entire-page is refreshed - indexpage is in the addressbar ... and it is loaded with its initial values. the only thing that i could think of ... at the moment ... would be to use a session or cookie to store the actual state of loaded sources in your frameset ... and recreate it from that data when indexpage is loaded to the browser again ...

kind regards
Sep 28 '07 #6
@Lakshmi Prasanna

Hai

The same error was happened for me in html i am using three frames . while refreshing the page the page is jumping to home page . in this time i use a script
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function reloadPage()
  5. {
  6. window.location.reload()
  7. }
  8. </script>
  9. </head>
  10. <body>
  11.  
  12. <input type="button" value="Reload page" onclick="reloadPage()" />
  13.  
  14. </body>
  15. </html>
try this once its working for me.

Thanku
Jan 18 '12 #7
when u press refresh button your session ends just like in irctc website...........
work with your session handling codes
Jan 18 '12 #8
I HAVE A small problem cold you solve it for me..
I hav a Timeclock button is their if i clicks through jquery post
it posts into another php page with that i got displayed instead
of timeclock button.the problem i hav links or other tabs if gone
and came back the timeclock buttons remains same.my database content should not erase how to
Feb 15 '14 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: MattB | last post by:
I have a page header that I made as a user control (ascx) that I drop on every page in my application. The application is an eCommerce application and I have a total for items in the cart on the...
2
by: PJSimon | last post by:
I have a system tray icon for my application. Each time the user pastes some text into the application, I add a submenu item in the system tray's context menu. The first time I right-click the icon...
3
by: Asaf | last post by:
Hi, I have SqlDataSource control that makes a "select count" to show how many rows there are in a Table and it is working fine on first page load. The problem is that when I am inserting a new...
4
by: Dan | last post by:
Hi, i'm not sure to understand the difference between refreshing the pagina by clicking on 'refresh' in the browser and a postback. What i think it is: Suppose a page with a form containing a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.