Hi,
I have created a script that needs to constanstly poll a webpage, I do
this with a controling function that fires off different functions to
do the work, then restarts by calling itself after a second using
settimeout.
on IE it runs forever, on firefox it stops after a while,
what am I doing wrong?
is there a limit on the number of times you can go around this type
loop you can go around in firefox?
if there is a limit, how do I get around it?
Would it be freak out if the function is already running when it is
fired again? 2 1358 ba*******@hotmail.com wrote:
Hi,
I have created a script that needs to constanstly poll a webpage, I do
this with a controling function that fires off different functions to
do the work, then restarts by calling itself after a second using
settimeout.
on IE it runs forever, on firefox it stops after a while,
what am I doing wrong?
Who knows? Where's the code?
is there a limit on the number of times you can go around this type
loop you can go around in firefox?
No.
if there is a limit, how do I get around it?
There is not limit, so there's nothing to "get around". ;-)
Would it be freak out if the function is already running when it is
fired again?
You can't call it while any other script is running. JavaScript is
single-threaded, if something else is running when setTimeout wants to
run, the call will be put in a que until its turn comes around.
At a guess, you are overloading the number of HTTP requests that
Firefox can make simultaneously - but that is just a guess.
--
Fred This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Schraalhans Keukenmeester |
last post by:
I have no clue why below code (found it somewhere and altered it a wee
bit to my needs) will run without problem in both IE and Mozilla FireFox
1.0 but in the latter it takes up close to 100% cpu....
|
by: 50295 |
last post by:
Hi everyone,
This one is better experienced than explained, so I'm including a code
sample below. Please and save (as an html file) and view with NN or
Firefox (or maybe even Mozilla), and then...
|
by: Laurent Compere |
last post by:
Hi all,
I try to make a logo fade in. I wrote the code below that is simple and
supposed to be compatible with IE6,Firefox and Netscape.
It works pretty well under IE6 but under Firefox and...
|
by: daveyand |
last post by:
Hey Guys,
I've stumped.
I created a function that does various things to select boxes.
Namely
Get All selected indexes,
populate array with these values
|
by: badaczewski |
last post by:
The following javascript appears on a popup window.
<script language="javascript" type="text/javascript">
function InsertContact(value)
{
window.opener.CallBackContact(value);
window.close();...
|
by: alex.malgaroli |
last post by:
Hi all.
I didn't find anything on the web regarding this different behaviour I
found in Firefox (v. 2) and IE (v. 6), so I'm posting it here, maybe
someone will benefit from this.
I have a...
|
by: Muir |
last post by:
I am needing, and would appreciate expert assistance for a Javascript program that I am using in a Website. The script is a Text and Image Fader, which only works on IE, but what I am trying to do...
|
by: ktang |
last post by:
www.statehousenews.com/beta/scroller2.asp
Is a code I wrote that retrieves data from a txt file and displays it into a txt scroller. XMLhttpRequest() is used to open and retrieve the data. The...
|
by: littlealex |
last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS!
In IE6 the text for the following page doesn't display properly - rather than being...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
| |