Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 18th, 2005, 11:53 PM   #1
sham
Newbie
 
Join Date: Mar 2005
Posts: 29
Rep Power: 0 sham is on a distinguished road
How can I change .asp page of frame after every 5-10 minutes ?

How can I change .asp page of frame after every 5-10 minutes ?
I am wondering if there is some way I can change .asp page of a frome after 5-10 minutes thr' scriptiong/coding automatically.
Let me tell you that I am new to ASP.
=Sham
sham is offline   Reply With Quote
Old May 1st, 2005, 8:25 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
I'm assuming you mean frames as in an HTML frameset.
That can be done in several ways.
The first and the most widely supported is to specify the Refresh field in the HTTP header. I'm not sure exactly how you'd do this in ASP, but what you're aiming for is to add:
Refreh: n; url=http://www.google.com/
after the Content-Type field. (n is in seconds).
The next way is to use the meta equivalent actually in the page source:
<meta http-equiv="refresh" content="n;url=http://www.google.com/">
where n is in seconds, and as the name implies it's equivalent.
You could also us javascript, so:
<script type="text/javascript">
<!--
function doredirect() {
location.href='http://www.google.com';
}
setTimeout('doredirect();',m);
//-->
</script>
where this time m is in milliseconds (so 1000 = 1 second).
Hope this helps.
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:20 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC