473,327 Members | 1,919 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,327 software developers and data experts.

Refresh page only once

Lex
I want to reload a page only once. Therefor meta refresh is not
suitable, because then it refreshes every x seconds. Is there a
possibility to refresh only once?

regards,
Lex Ouburg
Jul 23 '05 #1
4 7562
Lex wrote:
I want to reload a page only once. Therefor meta refresh
is not suitable, because then it refreshes every x seconds.
Is there a possibility to refresh only once?


Probably, but your reason for wanting to do this is probably as a hack
to 'solve' some other problem that would be better addressed directly.

Richard.
Jul 23 '05 #2
Lex wrote:
I want to reload a page only once. Therefor meta refresh is not
suitable, because then it refreshes every x seconds. Is there a
possibility to refresh only once?

regards,
Lex Ouburg


<a href="#" onclick="window.reload();return false;">Reload</a>

Of course, the user could just click the Reload button on their
browser, duplicating that functionality seems a bit silly.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #3
The window.location.reload() will reload the window. You could try
working with cookies or another window to keep track of the number of
time it has been refreshed.

Jul 23 '05 #4
Grant Wagner wrote:
Lex wrote:
I want to reload a page only once. Therefor meta refresh is not
suitable, because then it refreshes every x seconds. Is there a
possibility to refresh only once?

regards,
Lex Ouburg


<a href="#" onclick="window.reload();return false;">Reload</a>

Of course, the user could just click the Reload button on their
browser, duplicating that functionality seems a bit silly.


No it won't. Of course I meant:

<a href="#" onclick="window.location.reload();return
false;">Reload</a>
or
<a href="#" onclick="window.location.reload(true);return
false;">Reload</a> (which is supposed to force a GET regardless of
whether the document is currently cached or not)

Apologies for any problems this may have caused.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Wolfgang Kaml | last post by:
Hello All, I have been researching newsgroups and knowledgebase all morning and not found a solution that would solve the problem I have. I am having an ASP or ASPX web page that implement a...
43
by: dan baker | last post by:
I have a page that gets loaded with a meta-refresh hardcoded so that a few things on the page get updated. its kind of a fake chat board. anyway, what I need to do is turn off the meta-refresh once...
6
by: laura | last post by:
I'm doing a page which gathers some text in the form of a text box in a <form>. This text is saved to a text file, notices.txt and I want to be able to display the saved text on the page, as soon...
1
by: ppatel | last post by:
Problem I have a problem with web image button control click event. The click event does not get trigger until it has not been clicked once or page refresh occures(which is fine). When click...
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
9
by: Mr Newbie | last post by:
Before someone flames me, I know this is the VB.NET groups, nonetheless, the asp.net guys seems to have almost disapeared from the aspnet groups so I thought I would ask this here. I have a...
1
by: Badass Scotsman | last post by:
Hello, I have an application which should never allow the back button to be pushed without refreshing the previous page. For example: Step 1: User fills in form.html and presses submit ...
8
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE...
2
by: ankitmathur | last post by:
Hi Fellow Members, I want to know if HTML provides any way of refreshing a page only once automatically. My requirement is to refresh a page automatically only once after 2 minutes to display...
5
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I used the following code to refresh the parent page, and it works very well (Thanks to Peter Bromberg "). Response.Write("<script language='javascript' type='text/javascript'{...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.