PC Review


Reply
Thread Tools Rate Thread

Clock requests data each tick?

 
 
Larry
Guest
Posts: n/a
 
      24th Jun 2005
I have a javascript digital clock on my startup page and on another page
in a subfolder. They request data each time the clock ticks. I presume
it is asking for the next digit. I noticed this when running Mozilla, IE
does not give any apparent notice that new info is required.
The clock is an include file in each page. I was thinking of putting it
on other pages but won't if it causes server load for each tick.
Any ideas on how to stop the blinking? Would preloading the clock images
help?

url: http://www.bed-and-breakfast-travel....travelaid.html

Larry

--
For your security and peace of mind ALL emails are automatically
scanned with the latest Norton AV Virus Definitions.
Not that I have any virus' but why not be careful!
I get virus signature updates regularly!
-----------------
A Belt and Suspenders are the best security invented!
 
Reply With Quote
 
 
 
 
Steve Easton
Guest
Posts: n/a
 
      24th Jun 2005
That's just the way they work when done in javascript.
If you use a Java Virtual Machine Applet it won't query the server, but JVM does not come installed
in Newer versions of Windows, therefore it won't work for all visitors.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Larry" <(E-Mail Removed)> wrote in message news:Oz7f$(E-Mail Removed)...
> I have a javascript digital clock on my startup page and on another page
> in a subfolder. They request data each time the clock ticks. I presume
> it is asking for the next digit. I noticed this when running Mozilla, IE
> does not give any apparent notice that new info is required.
> The clock is an include file in each page. I was thinking of putting it
> on other pages but won't if it causes server load for each tick.
> Any ideas on how to stop the blinking? Would preloading the clock images
> help?
>
> url: http://www.bed-and-breakfast-travel....travelaid.html
>
> Larry
>
> --
> For your security and peace of mind ALL emails are automatically
> scanned with the latest Norton AV Virus Definitions.
> Not that I have any virus' but why not be careful!
> I get virus signature updates regularly!
> -----------------
> A Belt and Suspenders are the best security invented!



 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      24th Jun 2005
What do you mean "they request data each time the clock ticks"? I looked at
the script, and it doesn't request data anywhere. All it does is call the
JavaScript date() function, and display it in the page.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Larry" <(E-Mail Removed)> wrote in message
news:Oz7f$(E-Mail Removed)...
>I have a javascript digital clock on my startup page and on another page in
>a subfolder. They request data each time the clock ticks. I presume it is
>asking for the next digit. I noticed this when running Mozilla, IE does not
>give any apparent notice that new info is required.
> The clock is an include file in each page. I was thinking of putting it on
> other pages but won't if it causes server load for each tick.
> Any ideas on how to stop the blinking? Would preloading the clock images
> help?
>
> url: http://www.bed-and-breakfast-travel....travelaid.html
>
> Larry
>
> --
> For your security and peace of mind ALL emails are automatically
> scanned with the latest Norton AV Virus Definitions.
> Not that I have any virus' but why not be careful!
> I get virus signature updates regularly!
> -----------------
> A Belt and Suspenders are the best security invented!



 
Reply With Quote
 
Larry
Guest
Posts: n/a
 
      24th Jun 2005
Kevin you're looking at the date function. The clock is in the "include
_digitial_clock.html" file and uses js function "show3" to display. This
is the js function:
function show3(){
if (!document.images)
return
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
dn="AM"
if ((hours>=12)&&(minutes>=1)||(hours>=13)){
dn="PM"
hours=hours-12
}
if (hours==0)
hours=12
extract(hours,minutes,seconds,dn)
setTimeout("show3()",1000)
}
/*End show3.*/

Larry

Kevin Spencer wrote:

>What do you mean "they request data each time the clock ticks"? I looked at
>the script, and it doesn't request data anywhere. All it does is call the
>JavaScript date() function, and display it in the page.
>
>
>


--
For your security and peace of mind ALL emails are automatically
scanned with the latest Norton AV Virus Definitions.
Not that I have any virus' but why not be careful!
I get virus signature updates regularly!
-----------------
A Belt and Suspenders are the best security invented!
 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      25th Jun 2005
I think he means it accesses the net for each image (each digit) in the
clock - I had a countdown clock that did that....didn't seem to cache the
images after the first visit, and requested from the net each time the clock
counted down through the digits 0-9

"Kevin Spencer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> What do you mean "they request data each time the clock ticks"? I looked
> at the script, and it doesn't request data anywhere. All it does is call
> the JavaScript date() function, and display it in the page.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> Ambiguity has a certain quality to it.
>
> "Larry" <(E-Mail Removed)> wrote in message
> news:Oz7f$(E-Mail Removed)...
>>I have a javascript digital clock on my startup page and on another page
>>in a subfolder. They request data each time the clock ticks. I presume it
>>is asking for the next digit. I noticed this when running Mozilla, IE does
>>not give any apparent notice that new info is required.
>> The clock is an include file in each page. I was thinking of putting it
>> on other pages but won't if it causes server load for each tick.
>> Any ideas on how to stop the blinking? Would preloading the clock images
>> help?
>>
>> url: http://www.bed-and-breakfast-travel....travelaid.html
>>
>> Larry
>>
>> --
>> For your security and peace of mind ALL emails are automatically
>> scanned with the latest Norton AV Virus Definitions.
>> Not that I have any virus' but why not be careful!
>> I get virus signature updates regularly!
>> -----------------
>> A Belt and Suspenders are the best security invented!

>
>



 
Reply With Quote
 
Larry
Guest
Posts: n/a
 
      26th Jun 2005
Did you find some way to fix it or just use something else?


Andrew Murray wrote:

>I think he means it accesses the net for each image (each digit) in the
>clock - I had a countdown clock that did that....didn't seem to cache the
>images after the first visit, and requested from the net each time the clock
>counted down through the digits 0-9
>
>"Kevin Spencer" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>
>
>>What do you mean "they request data each time the clock ticks"? I looked
>>at the script, and it doesn't request data anywhere. All it does is call
>>the JavaScript date() function, and display it in the page.
>>
>>--
>>HTH,
>>
>>Kevin Spencer
>>Microsoft MVP
>>.Net Developer
>>Ambiguity has a certain quality to it.
>>
>>"Larry" <(E-Mail Removed)> wrote in message
>>news:Oz7f$(E-Mail Removed)...
>>
>>
>>>I have a javascript digital clock on my startup page and on another page
>>>in a subfolder. They request data each time the clock ticks. I presume it
>>>is asking for the next digit. I noticed this when running Mozilla, IE does
>>>not give any apparent notice that new info is required.
>>>The clock is an include file in each page. I was thinking of putting it
>>>on other pages but won't if it causes server load for each tick.
>>>Any ideas on how to stop the blinking? Would preloading the clock images
>>>help?
>>>
>>>url: http://www.bed-and-breakfast-travel....travelaid.html
>>>
>>>Larry
>>>
>>>--
>>> For your security and peace of mind ALL emails are automatically
>>>scanned with the latest Norton AV Virus Definitions.
>>> Not that I have any virus' but why not be careful!
>>> I get virus signature updates regularly!
>>> -----------------
>>> A Belt and Suspenders are the best security invented!
>>>
>>>

>>
>>

>
>
>
>


--
For your security and peace of mind ALL emails are automatically
scanned with the latest Norton AV Virus Definitions.
Not that I have any virus' but why not be careful!
I get virus signature updates regularly!
-----------------
A Belt and Suspenders are the best security invented!
 
Reply With Quote
 
Larry
Guest
Posts: n/a
 
      30th Jun 2005
Can I presume no reply means no one has any idea on how to fix this
annoying problem?
[other than ditch the clock? - }

Larry wrote:

> Did you find some way to fix it or just use something else?
>
>
> Andrew Murray wrote:
>
>> I think he means it accesses the net for each image (each digit) in
>> the clock - I had a countdown clock that did that....didn't seem to
>> cache the images after the first visit, and requested from the net
>> each time the clock counted down through the digits 0-9
>>
>> "Kevin Spencer" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>
>>
>>> What do you mean "they request data each time the clock ticks"? I
>>> looked at the script, and it doesn't request data anywhere. All it
>>> does is call the JavaScript date() function, and display it in the
>>> page.
>>>
>>> --
>>> HTH,
>>>
>>> Kevin Spencer
>>> Microsoft MVP
>>> .Net Developer
>>> Ambiguity has a certain quality to it.
>>>
>>> "Larry" <(E-Mail Removed)> wrote in message
>>> news:Oz7f$(E-Mail Removed)...
>>>
>>>
>>>> I have a javascript digital clock on my startup page and on another
>>>> page in a subfolder. They request data each time the clock ticks. I
>>>> presume it is asking for the next digit. I noticed this when
>>>> running Mozilla, IE does not give any apparent notice that new info
>>>> is required.
>>>> The clock is an include file in each page. I was thinking of
>>>> putting it on other pages but won't if it causes server load for
>>>> each tick.
>>>> Any ideas on how to stop the blinking? Would preloading the clock
>>>> images help?
>>>>
>>>> url: http://www.bed-and-breakfast-travel....travelaid.html
>>>>
>>>> Larry
>>>>
>>>> --
>>>> For your security and peace of mind ALL emails are automatically
>>>> scanned with the latest Norton AV Virus Definitions.
>>>> Not that I have any virus' but why not be careful!
>>>> I get virus signature updates regularly!
>>>> -----------------
>>>> A Belt and Suspenders are the best security invented!
>>>>
>>>
>>>

>>
>>
>>
>>
>>

>


--
For your security and peace of mind ALL emails are automatically
scanned with the latest Norton AV Virus Definitions.
Not that I have any virus' but why not be careful!
I get virus signature updates regularly!
-----------------
A Belt and Suspenders are the best security invented!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tick data compressed into minute data? I want to pay to get this to work. Rolf Microsoft Access 4 7th Feb 2010 04:06 AM
Clock tick Chris Watts Microsoft Powerpoint 1 23rd Aug 2006 07:08 PM
Send meeting requests Tick Box =?Utf-8?B?TG9M?= Microsoft Outlook Calendar 0 2nd Mar 2006 10:40 AM
WD: tick, tick, tick, ... thunk challenge! John . Storage Devices 2 29th Feb 2004 05:27 AM
Does OS "tick" clock sync with CMOS clock periodically? Greg Lindauer Microsoft Windows 2000 Hardware 1 22nd Jan 2004 03:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:24 PM.