Getting user's time from web revlet?

Michael Kann mikekann at yahoo.com
Tue Jan 19 10:24:03 EST 2010


I'm sure you don't want to do this for your current project, but what the hell I'll just mention it anyway.

On the server side you could have a database that figures out the location of the browser according to the IP number it sends you. Match the location against a table of times/dates around the world and you might be right some of the time.





--- On Tue, 1/19/10, Tim Selander <selander at tkf.att.ne.jp> wrote:

> From: Tim Selander <selander at tkf.att.ne.jp>
> Subject: Re: Getting user's time from web revlet?
> To: "How to use Revolution" <use-revolution at lists.runrev.com>
> Date: Tuesday, January 19, 2010, 8:29 AM
> Thanks for clearing up the
> .irev/revlet confusion in my head.
> 
> I've read through the thread a couple times... and it seems
> you 
> CANNOT get the user/browser's date and time through
> RevServer 
> scripts. Correct?
> 
> Anyone have a javascript snippet they like to use to get
> the 
> user's date and time? thanks.
> 
> Tim Selander
> Tokyo, Japan
> 
> Andre Garzia wrote:
> > Tim,
> > 
> > .irev files are not revlets. revlets are the plugin
> based files to be run in
> > a browser thru the plugin, they have the .revlet
> sufix. irev files are text
> > file scripts to be run by the RevServer engine. This
> is just so that you
> > don't mix them two when you search the archives or
> documentation, for it
> > would yield bad search results
> > 
> > As for getting the clients time using RevServer files
> check out the variable
> > $_SERVER["Date"], it will contain a timestamp from the
> browser perspective.
> > Hope this helps.
> > 
> > Cheers
> > andre
> > 
> > 2010/1/18 Tim Selander <selander at tkf.att.ne.jp>
> > 
> >> Hi,
> >>
> >> I've found some ways using javascript, but does
> anyone know if
> >> on-rev revlets (.irev files) have a way of getting
> the user's
> >> date and time from their browser/PC?
> >>
> >> Thanks,
> >>
> >> Tim Selander
> >> Tokyo, Japan
> >> _______________________________________________
> >> use-revolution mailing list
> >> use-revolution at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe
> and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>
> > 
> > 
> > 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 


      



More information about the use-livecode mailing list