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

Timer Function ??

I need a function that every 5 seconds a different web page will be called.
Where is a good reference to local something similar to this?
Jul 20 '05 #1
3 1165
> I need a function that every 5 seconds a different web page will be
called.
Where is a good reference to local something similar to this?

You may try to make it like this:

<html>
<body>
<iframe id="frameId" width="100%" height="100%" frameborder="0"
scrolling="auto"></iframe>
<script type="text/javascript">

var urlArray = new Array();

// Array of urls to rotate through
urlArray[0] = 'http://www.google.com';
urlArray[1] = 'http://www.google.de';
urlArray[2] = 'http://www.google.fr';

var urlCounter = 0;

function goToUrl() {
var idx = urlCounter % urlArray.length; //which index of urlArray to use
urlCounter ++;
document.frames['frameId'].location.href = urlArray[idx];
}

var interval = setInterval("goToUrl()",5000);

</script>
</body>
</html>

Of course this is just an examle, but I Hope this will put you on the right
track
Jul 20 '05 #2
DevBoy wrote:
I need a function that every 5 seconds a different web page will be called.


This is utter nonsense. No Internet connection that is available to
common people is nowadays that fast, unless you link only low-quality
websites. Besides, what do you tell the user who is complaining that
you force him/her to download data that he/she never requested?
PointedEars
Jul 20 '05 #3
Thomas 'PointedEars' Lahn wrote:
DevBoy wrote:

I need a function that every 5 seconds a different web page will be called.

This is utter nonsense.


You have no clue what you are talking about. Ever heard of a
news-ticker? Obviously not.

No Internet connection that is available to common people is nowadays that fast,
unless you link only low-quality websites. Besides, what do you tell the user
who is complaining that you force him/her to download data that he/she never
requested?


Can you back *any* of that up with research?

Unless the site is *very* loaded with images, I don't know of many sites
that I can't load in 5 seconds. And I have a "very available to common
people" Cable Connection, with the US Based subscriber base growing
daily. DSL connections are comparable in speed as well.

Your move stupid.

--
Randy

Jul 20 '05 #4

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

Similar topics

4
by: Christine | last post by:
I've implemented a countdown timer for a tutorial web page that should give the user 45 minutes to complete the test, only to find that the timer is slowly 'losing' time. On average, it actually...
7
by: J. Hill | last post by:
I have a Windows Service with a timer but the .Tick event is not being fired/called. Don't know what code to include...I enabled and started the timer...I have the exact same code in a Windows...
6
by: Antti Laakso | last post by:
Hi i have function like above Public Sub halytystutkinta() Dim ds As New DataSet ds = dl2.HaeHalytys() Dim onkohal As Int16 onkohal = ds.Tables(0).Rows(0).Item("onkohalytys") halid =...
7
by: Noozer | last post by:
I have a timer on a form. It isn't firing at all. I know that the timer is enabled, and that the interval is low (4000, which should be 4 seconds). To ensure the timer wasn't being inadvertantly...
1
by: jmgro | last post by:
I have spent way too much time trying to solve the following problem: I have a datalist with a timer in the footer template. It works wonderfully except when the user pages back, then forward,...
10
by: Ryan | last post by:
I'm creating a website that monitors the status of servers using My.Computer.Network.Ping. I'm looking for a way to fire off my Ping() function every second or so. I see a Timer control...
4
by: grayaii | last post by:
Hi, I have a simple form that handles all its paint functionality like so: this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); And the entry point to this...
4
by: jwriteclub | last post by:
Hello all, I have a quick question about timers in C#. I have a System.Windows.Forms.Timer timer (the kind you "drag" out of the toolbox. It looks something like this: public class...
7
by: ssecorp | last post by:
I am not clear about the results here. from timeit import Timer import Decorators def fib(n): a, b = 1, 0 while n: a, b, n = b, a+b, n-1
7
by: genesistr | last post by:
Hi, I have timer class and some classes use timer. but when i come back from timer with callback function, i can see this. properties. function Timer(dName, dCallback){ this.timer = null;...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.