This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes news Ticker pauses when other frame refreshes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "news Ticker pauses when other frame refreshes" Watch "news Ticker pauses when other frame refreshes" New topic
Author

news Ticker pauses when other frame refreshes

vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
Hi
i am using this news ticker code
http://www.mioplanet.com/rsc/newsticker_javascript.htm
for displaying scrolling news , i am displaying some content in frame1 and news ticker in frame 2 and the ticker pauses for some time every time the frame1 refreshes.
do you think it is a bug in browsers? or is the code wrong
vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
any javascript code i find on internet for news scroller is stoping for a moment when the frame1 refreshes or even when frame1 do a ajax call and refreshes a div content.
anybody has ideas why it is so
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It is because the browser is processing the new data stealing the cpu so it slows or stops the interval. Nothing new and nothing you will be able to stop it.

Eric
vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
Really. so there is no way to make it work.
i will try to remove my js scroller in bottom frame and use flash instead and see if it works.
does anybody know any other websites with news scroller at bottom/or anywhere which will not get interupted by other frames
vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
is there a way to tell browser that the frame2 is important and should not be interupted
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: news Ticker pauses when other frame refreshes
 
Similar Threads
Unable To Retrive All The Values From Vector
Frame dispose()
Getting data from one frame into another
Frame as MODAL
paintComponent in JDesktopPane gives unexpected results when dragging