CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 auto refresh a page every minute?

Print topic Send  topic

Author Message
dik mus
Posted: 11/11/2005, 1:49 AM

Hi,

I have a page that shows records from a external database.
The data in the database changes, and i want the page (tha is open all day) to show actual data.
Is it possible to add some code so that the page is reloaded every minute?

thanks dik
E43509

Posts: 283
Posted: 11/11/2005, 6:54 AM

from google search: http://webtips.dan.info/refresh.html
I've used this and it works in our environment

Use this syntax, within the <HEAD> section of the document:

<META HTTP-EQUIV="Refresh"
CONTENT="30; URL=http://www.yoursite.com/some/place/">

The contents of the "CONTENT" attribute consist of the number of seconds until the page load takes place, followed by a semicolon and a space, then "URL=" followed by the URL of the site to load. Note that the "URL=" part is within the "CONTENT=" parameter, not a separate parameter.

Since this is an HTTP-EQUIV META tag, it is actually equivalent to sending a Refresh header in the server's actual HTTP headers. If you have control of this server-level stuff, you can do refreshes directly through the headers without having to insert a tag in your HTML documents. (Though, it's possible there are a handful of browsers that don't like it that way; WebTV might be one of them based on one test I made months ago, though I haven't done extensive testing there.)

I should note, however, that the Refresh header doesn't appear in any of the standards documents regarding the HTTP protocol, so it is technically nonstandard (whether sent as a real header or a META tag), though widely supported.

View profile  Send private message
dik mus
Posted: 11/13/2005, 11:15 AM

Thanks,

The page I want to refresh has a parameter.
www.mysite.com ?group=12

There are different groups that use this page (with different parameters)
Can I still use this META HTTP-EQUIV way to refresh the page?
wkempees
Posted: 11/13/2005, 2:22 PM

E43509 is right, that's the right syntax.
I am using it all day, but set to 60 to give me a change to scroll down
on this large logging page.

It will work with or withour the URL
You can also do $_SEVER['PHP_SELF'] or $HTTP_SERVER_VARS['PHP_SELF]
depending on PHP version after your URL-domainname preserving the parameter.


Walter
dik mus
Posted: 11/14/2005, 3:37 AM

Thanks all, I did not know it was possible skip the url part. Now it works great for me.

vijay
Posted: 12/27/2005, 9:54 PM

Thx, Good enough.....................;-)

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.