473,405 Members | 2,310 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,405 software developers and data experts.

http-equiv="refresh" -> II

Hi,
this is my second try to explain:

I need to know how much time has left from this meta:
<meta id="ref" http-equiv="refresh" content="300;url="/>
I mean:
--------
when the page has loaded I have 5 minutes to wait until the page will
refresh by himself. Meanwhile I need to know the countdown to 300...

any idea ?

Jul 25 '06 #1
4 1280
Oren wrote:
Hi,
this is my second try to explain:

I need to know how much time has left from this meta:
<meta id="ref" http-equiv="refresh" content="300;url="/>
I mean:
--------
when the page has loaded I have 5 minutes to wait until the page will
refresh by himself. Meanwhile I need to know the countdown to 300...

any idea ?
Since this would be client side you would need to use Javascript.

What are you going to do with this time?
Jul 25 '06 #2
Counting time passed from the page load is not difficult. Use a javascript
timer. I am not sure if you can get the content:xx value in javascript. You
may consider passing it down in another way, for example in a hidden input
element.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Oren" <Or**@discussions.microsoft.comwrote in message
news:90**********************************@microsof t.com...
Hi,
this is my second try to explain:

I need to know how much time has left from this meta:
<meta id="ref" http-equiv="refresh" content="300;url="/>
I mean:
--------
when the page has loaded I have 5 minutes to wait until the page will
refresh by himself. Meanwhile I need to know the countdown to 300...

any idea ?

Jul 25 '06 #3
hi,
I need to show it on the page...(300->299->298->.........)

"Ray Booysen" wrote:
Oren wrote:
Hi,
this is my second try to explain:

I need to know how much time has left from this meta:
<meta id="ref" http-equiv="refresh" content="300;url="/>
I mean:
--------
when the page has loaded I have 5 minutes to wait until the page will
refresh by himself. Meanwhile I need to know the countdown to 300...

any idea ?
Since this would be client side you would need to use Javascript.

What are you going to do with this time?
Jul 25 '06 #4
Use Javascript to do the countdown. You can just as well use the
Javascript to do the refresh also.

Oren wrote:
Hi,
this is my second try to explain:

I need to know how much time has left from this meta:
<meta id="ref" http-equiv="refresh" content="300;url="/>
I mean:
--------
when the page has loaded I have 5 minutes to wait until the page will
refresh by himself. Meanwhile I need to know the countdown to 300...

any idea ?
Jul 25 '06 #5

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

Similar topics

11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
24
by: AES/newspost | last post by:
On many web sites or pages (including my own home page) clicking on certain links will start downloading a PDF file, sometimes without the author having provided any warning in the text of the page...
2
by: Bill Cohagan | last post by:
I'm trying out ASP.Net and am currently trying to figure out how to refresh the contents of one frame based on a button click in another frame. The button in question is actually a server side...
1
by: David | last post by:
how can I force the "document.execCommand("Refresh");" command to refresh page only one time?
2
by: ujjc001 | last post by:
For some reason I can't Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout * 60) + 60) & "; URL=default.aspx") to add the tag into the header. In the source the refresh header is...
1
by: IkBenHet | last post by:
Hello, Currently I am using a large input form on a website that is based on ASP and JavaScript. Depending on the values that are filled in by the user the forms does a refresh and makes...
4
by: simon | last post by:
hello, i have a section of a page that has multiple dropdowns. each dropdown calls the same method on a change of selection by the user. the method loops over all the dropdowns and if the newly...
1
by: Larax | last post by:
Alright, so here's the problem. I define a global variable in my script and then add methods/properties to it. Everything works great, no error in Javascript Console. But when I refresh site,...
4
by: Simon | last post by:
Dear reader, If I change the content of a field in an event procedure and in the same procedure I do a refresh, the refresh has no effect. The code in the event is as follows:
5
by: tabariz | last post by:
Hello everybody can anyone tell me whats the correct syntax to add a variable previously declared to the url in the command header("refresh: 5, url:) for example i want my URL to be ...
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: 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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.