Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setInterval() method ...

Status
Not open for further replies.

arunjp

Programmer
Jan 10, 2001
29
US
Hi !
I have multiple frames in my application. My requirement is when bottom frame is scrolled the top frame should also get scrolled (the catch is top frame should not have scrollbar). I implemented the function and it performs well. I have a logic (ie a javascript function) that checks for the position of the scrollbar at the bottom frame for every 50 milliseconds using setInterval(function, 50) method. Iam afraid whether the application would hang incase if it is run in low configuration machine (because of function execution for every 50 miliseconds). My question is, what is the maximum time interval that can be set in setInterval() method so that this gets executed fine even in low config client machines. Solution is urgently required.
Thanks
AJP
 
I (I stress the 'I' bit!) wouldn't worry about it a previous project of mine in Javascript had tons of simultaneous setIntervals and setTimeouts and it still worked fine on a low spec machine. I'm talking P166+.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top