Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.javascript > #8030
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | M_M <spam@the.hell> |
| Newsgroups | it.comp.lang.javascript |
| Subject | Re: date server |
| Date | Fri, 29 Apr 2016 17:12:57 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 22 |
| Message-ID | <nfvtfa$qg7$1@dont-email.me> (permalink) |
| References | <nfvfe9$4bm$1@dont-email.me> <doh51iF3cc2U1@mid.individual.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | mx02.eternal-september.org; posting-host="67cce6a30119a077a401aa7b68a1dda7"; logging-data="27143"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cv3OJK8bGDX3LGy7voXpZ" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
| Cancel-Lock | sha1:DjCoHe195dhRUS0EyJK4jM2BpZY= |
| Xref | csiph.com it.comp.lang.javascript:8030 |
Show key headers only | View raw
ven, 29 apr 2016, 15:14:26, Alessandro Pellizzari ha scritto: > Hai (almeno) due possibilità. > > Quella semplice è espandere un po' quello che hai, ma invece di > visualizzare subito l'orario, usarlo lato Javascript per calcolare la > differenza di data e ora tra il server e il client, quindi usare le > funzioni js per le date per continuare a mostrarlo aggiornato. Così > puoi aggiornarlo anche ogni secondo, volendo. > > La seconda è di fare chiamate AJAX periodiche al server per avere la > data. Ma ne vale la pena? Non lo so ma io di te mi fido e quindi evito. :-) Provero` ad adottare un'altra strategia cioe` convertire, con javascript, l'ora effettiva del client in quella corrispondente di Roma. Forse e` piu` facile; mi serve solo perche` se qualche straniero mi vuole contattare, possa rendersi subito conto di che ora e` qui da me. Ciao e grazie.
Back to it.comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar
date server M_M <spam@the.hell> - 2016-04-29 13:13 +0200
Re: date server Alessandro Pellizzari <shuriken@amiran.it> - 2016-04-29 14:14 +0100
Re: date server M_M <spam@the.hell> - 2016-04-29 17:12 +0200
Re: date server M_M <spam@the.hell> - 2016-04-29 19:25 +0200
Re: date server M_M <spam@the.hell> - 2016-04-30 09:26 +0200
Re: date server M_M <spam@the.hell> - 2016-05-03 14:15 +0200
Re: date server Alex <tommaso5ita@yahoo.it> - 2016-04-29 16:57 +0200
csiph-web