HighDots Forums  

Re: Date and time...

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: Date and time... in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SamMan
 
Posts: n/a

Default Re: Date and time... - 07-17-2003 , 09:36 PM






Do you want to do it from the client, or server side?
translation....
Do you want to calculate the time/date based on the users computer, or to
get the time/date from the server (where the page is generated from)?

Sam


"Moltrinn" <HLMoultrie (AT) aol (DOT) com> wrote

Quote:
does anyone know how to code or add the date and time into a site?

if so, please help.

thanks,

Moltrinn





Reply With Quote
  #2  
Old   
SamMan
 
Posts: n/a

Default Re: Date and time... - 07-18-2003 , 06:29 AM






Yes... but how are you going to go about doing this?
Are you going to use the time of the users computer (client) to generate the
time in Thailand, or use the time on the server? If the later, then you need
to find out what server-side scripting language is available to you.

I can generate times from all over the world on a single page using
JavaScript (client-side scripting), but if the user changes the time, and or
date on their computer, it kind of screws things up, doesn't it?

Sam


"GeoBear" <GeoBear (AT) geobop (DOT) com> wrote

Quote:
"Do you want to do it from the client, or server side?
translation....

"Do you want to calculate the time/date based on the users computer, or to
get the time/date from the server (where the page is generated from)?"

How about both? And can you use both techniques on one page? For example,
imagine you have an article focusing on Thailand, and you want the clock to
display the current time in Thailand - but you want a second clock to
display the time on your visitors' computers.
Quote:
http://www.geobop.com/, GeoBearATgeobop.com (Replace AT with @)
Interests: Web Design, Linux &amp; Political Reform



Reply With Quote
  #3  
Old   
Moltrinn
 
Posts: n/a

Default Re: Date and time... - 07-18-2003 , 10:58 AM



I'd like the client/customer to be able to view it...

thanks.



Reply With Quote
  #4  
Old   
darrel
 
Posts: n/a

Default Re: Date and time... - 07-18-2003 , 12:12 PM



Quote:
I'd like the client/customer to be able to view it...
WHY?

This has got to be the single-most-uselss feature I've ever seen people put
on a web site.

People own watches, clocks, and, guess what? ALL major OSes HAVE A CLOCK
ALREADY ON THE SCREEN!

Sorry for the rant, but 'current time' on a web site is absolutely useless.
Server-based times are conceivably useful in time-zone issues, but even then
you really should have a good reason for it.

-Darrel




Reply With Quote
  #5  
Old   
SamMan
 
Posts: n/a

Default Re: Date and time... - 07-18-2003 , 07:08 PM




"Moltrinn" <HLMoultrie (AT) aol (DOT) com> wrote

Quote:
I'd like the client/customer to be able to view it...

thanks.


Moltrinn:

The client/customer *will* be able to view it, but you need to make a couple
of decisions here....

1) How important is it that the user views the time accurately? Let me
explain. If you were to do it with JavaScript (client-side), you have to
rely on the user to have their time/date set correctly on their computer for
the time to be displayed correctly on the web page. This could potentially
mean thousands, or millions of possible errors/invalid time displays because
users don't have their computers set right. With server-side scripting (ASP,
JSP, PHP, ColdFusion, etc.), you only have to worry about the time being set
correctly on *one* computer.... the server.

2) If you do decide to generate the time from the server, you need to find
out what scripting language your host supports. Not all hosts support all
scripting languages. Then decide, out of that answer, what language *you*
are most comfortable coding & maintaining.

Hope this helps & good luck,
Sam




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.