homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

timeout for refresh JavaScript?

WebmasterWorld Senior Member keyplyr us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 209 posted 7:40 am on Oct 12, 2002 (gmt 0)

I have a pop-up that displays a local webcam shot. I use: <meta http-equiv="refresh" content="10"> to refresh the window, thus pulling in the new shot that's redundantly ftp'd every 10 seconds, overwriting the old shot. Works well and I never really needed anything more sophisticated as far as scripting.

However, recently I have been seeing 2-3k in daily hits for this little window (normal is a couple hundred.) The webcam window has no toolbar, however I believe a user(s) may be saving it or just letting it refresh in the background indefinitely.

So I'd like to use maybe an external JavaScript to refresh this window but set a time out or max load number to stop this waist of bandwidth. How could I write this? Thanks.



WebmasterWorld Senior Member 10+ Year Member

Msg#: 209 posted 6:30 pm on Oct 12, 2002 (gmt 0)

That would be tough as the javascript would be restarted every time you refresh the page. Maybe something with cookies?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved