Register  |  Login



Question

Status: Closed Points: 30 Time: 07:09 - Jul 22, 2006  

Anpanman

Automatically refresh internet pages?

I want my web page to update itself every x seconds. How can I do this in a way that works for all (or most) browsers?

Answer Discussion
Answer Summaries

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

rcastagna

Date:: Jul 24, 2006

Time:: 03:54

Anpanman,

Are you talking about having a visitor come to your home page, and then five seconds later it refreshes itself?

If this is the case, there are a couple of ways to do this, the easiest one being to use the "meta refresh" tag which is recognized by most "modern" browsers - IE 5 and greater, NS 4.78 and greater, Firefox, Opera, etc...

Place the following tag in the <head> portion of your HTML document:

<meta http-equiv="refresh" content="600">

The value that you put in the 'content' with determine how many seconds will elapse prior to the page refreshing itself. In the above example the page would refresh in 10 minutes.

Another way you could refresh the page is by using Javascript and the setTimeout() function available. It's a bit more involved, and will also work with most modern browsers.

I will be happy to provide an illustration of the Javascript method if the <meta> tag does not suit your needs. Please let me know.

Take care,
Ric

Anpanman

Date:: Jul 25, 2006

Time:: 02:21

Great, I thought I had to use javascript to get it right for most browsers.
Thanks for the answer.

madinenilakshman

Date:: Mar 21, 2008

Time:: 04:41

I am developing a web page that has to update things periodically with out refreshing the webpage (I have multiple forms in my web page and I don't want to disturb other forms). I can get the things back to the web page and they can be updated periodically when I use a single form. But the problem is when I use multiple forms in a single web page I am not able to refresh the single form. Can any one provide some tips how can I send single form request to the server.

Note: Please remember that I can't use submit buttons or anchor tags for submiting the form. It should be done automatically.

Question Answered

This question has been closed, and points have been rewarded to the following experts:

rcastagna: 30

You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for the Summary Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No summaries have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Similar Questions

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top web development Experts

View More

Rank

Expert

Points

1.

jgivoni

1073

2.

nidhi

890

3.

rcastagna

877

4.

PeterNZ

760

5.

xarcus

620

6.

oracleofDelphi

375

7.

Anpanman

370

8.

theDude

305

9.

redcharcoal

275

10.

rberbe2002

185

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es