Re: Getting user's time from web revlet?

2010-01-21 Thread Tim Selander
Mark Wieder wrote: the user's info. But if you're using a revlet (and that *is* in the subject, after all) then you should be able to convert the server's internet time to the user's local time (assuming the local time on their computer is correct). Hi Mark - yep, that is exactly what I want

Re: Getting user's time from web revlet?

2010-01-21 Thread Robert Brenstein
On 21.01.10 at 21:56 +0900 Tim Selander apparently wrote: Hi Mark - yep, that is exactly what I want to do, but haven't figured out how yet. I have learned how to get the user's local time via javascript, but don't know how to pass it to the revlet (actually, it seems I have my terms wrong,

Re: Getting user's time from web revlet?

2010-01-21 Thread Andre Garzia
I think the important part of this thread is that the browser does send time information in the form of an HTTP Date header which RevServer simply ignores. I want all the headers available, if we don't have all the headers then we'll loose some information such as ETag, if-modified-since and

Re: Getting user's time from web revlet?

2010-01-21 Thread Jim Ault
I agree that with On-Rev using irev scripts, the HTTP headers is a definite weakness. However, the On-Rev server account features that we have now allow for Rev CGI, which has the same header limitations, but stable code and capabilities PHP which does have the full range of header

Re: Getting user's time from web revlet?

2010-01-21 Thread Devin Asay
A few months back Mark Waddingham had an article in RevUp describing how to use a shell script to get the user's local time. If you knew where each user was located it might be a solution. http://runrev.com/newsletter/may/issue71/newsletter2.php Devin On Jan 21, 2010, at 9:14 AM, Andre

Re: Getting user's time from web revlet?

2010-01-21 Thread Pierre Sahores
Hi Andre and All, Google Analytics use js+cookies to handle all the user's local dates tasks. Seems to meen that revServer is not the onest server-side engine to passtrough some env_vars ;-) HTH, Pierre Le 21 janv. 10 à 17:14, Andre Garzia a écrit : I think the important part of this

Re: Getting user's time from web revlet?

2010-01-21 Thread Jim Ault
If I were determined to make use of an irev script with an HTTP header that was unsupported by the irev engine, I could create a userPage.php page that captured the header string(s) then called the irev script passing the params. This address could be myaccount.on-rev.com/userPage.php I

Re: Getting user's time from web revlet?

2010-01-21 Thread Jim Ault
On Jan 21, 2010, at 9:08 AM, Pierre Sahores wrote: Hi Andre and All, Google Analytics use js+cookies to handle all the user's local dates tasks. Seems to meen that revServer is not the onest server-side engine to passtrough some env_vars ;-) True, but that again is using cookies in

Re: Getting user's time from web revlet?

2010-01-21 Thread Pierre Sahores
Jim, in this case, Sarah's way wins and David Beck's CallPHP 1.5 lib sould be usable too (http://www.rotundasoftware.com/rev/) Le 21 janv. 10 à 03:04, Sarah Reichelt a écrit : On Wed, Jan 20, 2010 at 12:29 AM, Tim Selander selan...@tkf.att.ne.jp wrote: Thanks for clearing up the

Re: ON-Rev Docs (was Re: Getting user's time from web revlet?)

2010-01-20 Thread Medard
stephen barncard stephenrevoluti...@barncard.com wrote: When is Revolution going to [snip] +1 What about The Missing Manual for On-Rev ? ;-) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe,

Re: Getting user's time from web revlet?

2010-01-20 Thread Sarah Reichelt
On Wed, Jan 20, 2010 at 12:29 AM, Tim Selander selan...@tkf.att.ne.jp wrote: 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

Re: Getting user's time from web revlet?

2010-01-20 Thread Jim Ault
On Jan 20, 2010, at 6:04 PM, Sarah Reichelt wrote: As far as I know, the JavaScript Date object gives the browser's date time. Here is a routine I have to showing a time stamp: The original issue is that the browser does not send its system date and time to the server so that a

Re: Getting user's time from web revlet?

2010-01-20 Thread Mark Wieder
Wednesday, January 20, 2010, 6:26:53 PM, Jim Ault wrote: The original issue is that the browser does not send its system date and time to the server so that a sever-side script can use it. I think by now I've lost track of the why of this. By the time the post information reaches the server

Re: Getting user's time from web revlet?

2010-01-20 Thread Tim Selander
I was the original poster and this has been a very interesting thread, though a fair bit of it has been over my head as I don't know javascript, nor html, very well. I'm working on a simple web based To Do list for some family members to share. Pops up items based on date. But I'm in Tokyo,

Re: Getting user's time from web revlet?

2010-01-20 Thread Mark Wieder
Tim- Wednesday, January 20, 2010, 7:59:52 PM, you wrote: I'm working on a simple web based To Do list for some family members to share. Pops up items based on date. But I'm in Tokyo, other users are in China and the US--it's Monday here while still Sunday for you in the US. Want to pop up

Re: Getting user's time from web revlet?

2010-01-19 Thread Jim Ault
Another reason for using Rev CGI for the OnRev server. I am using both. The irev scripting is nice, but it is in beta, so changes are sure to be made. With CGI, you can install an engine (eg. Linux 3.5) and use that one forever, thus no shifting conditions. Andre's auto-installer works

Re: Getting user's time from web revlet?

2010-01-19 Thread Michael Kann
: Getting user's time from web revlet? To: How to use Revolution use-revolution@lists.runrev.com Date: Monday, January 18, 2010, 6:07 PM ARRRGGGH! okay, it is down to this... browsers send the date header to the server, it is mandatory but the date header is not being passed

Re: Getting user's time from web revlet?

2010-01-19 Thread Tim Selander
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?

Re: Getting user's time from web revlet?

2010-01-19 Thread Michael Kann
SCRIPT_FILENAME SCRIPT_NAME SERVER_ADDR SERVER_ADMIN SERVER_NAME SERVER_PORT SERVER_PROTOCOL SERVER_SIGNATURE SERVER_SOFTWARE --- On Tue, 1/19/10, Jim Ault jimaultw...@yahoo.com wrote: From: Jim Ault jimaultw...@yahoo.com Subject: Re: Getting user's time from web revlet? To: How to use

Re: Getting user's time from web revlet?

2010-01-19 Thread Michael Kann
. --- On Tue, 1/19/10, Tim Selander selan...@tkf.att.ne.jp wrote: From: Tim Selander selan...@tkf.att.ne.jp Subject: Re: Getting user's time from web revlet? To: How to use Revolution use-revolution@lists.runrev.com Date: Tuesday, January 19, 2010, 8:29 AM Thanks for clearing up the .irev

Re: Getting user's time from web revlet?

2010-01-19 Thread Michael Kann
around the world and you might be right some of the time. --- On Tue, 1/19/10, Tim Selander selan...@tkf.att.ne.jp wrote: From: Tim Selander selan...@tkf.att.ne.jp Subject: Re: Getting user's time from web revlet? To: How to use Revolution use-revolution@lists.runrev.com Date: Tuesday, January

Getting user's time from web revlet?

2010-01-18 Thread Tim Selander
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

Re: Getting user's time from web revlet?

2010-01-18 Thread Andre Garzia
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,

Re: Getting user's time from web revlet?

2010-01-18 Thread Richard Gaskin
Andre wrote: As for getting the clients time using RevServer files check out the variable $_SERVER[Date], it will contain a timestamp from the browser perspective. From the browser perspective? I would have thought that server variables would report things from the server perspective, no?

Re: Getting user's time from web revlet?

2010-01-18 Thread Michael Kann
assume that would be the same list that you can use in your .irev pages?) Thanks again, Mike --- On Mon, 1/18/10, Richard Gaskin ambassa...@fourthworld.com wrote: From: Richard Gaskin ambassa...@fourthworld.com Subject: Re: Getting user's time from web revlet? To: How to use Revolution

Re: Getting user's time from web revlet?

2010-01-18 Thread Andre Garzia
Richard, $_SERVER holds server variable and request variables, Date is a request variable with the timestamp sent by the browser for the given request. I think it should be on some kind of $_REQUEST array but it is on the $_SERVER, everything that is not GET or POST variable goes into $_SERVER,

Re: Getting user's time from web revlet?

2010-01-18 Thread Ralf Bitter
Hi Mike, you can get infos about the $_SERVER variable here: http://samples.on-rev.com/irev-engine-notes.txt Ralf On 18.01.2010, at 16:55, Michael Kann wrote: While perusing the revIngniter docs I came across the sentence: The On-Rev server is currently not supporting the $_Server

ON-Rev Docs (was Re: Getting user's time from web revlet?)

2010-01-18 Thread stephen barncard
Sadly, ON-REV ENGINE NOTES [ LAST UPDATED 2009-06-02 BY Mark Waddingham ] is the ONLY full reference sheet on ON-Rev. (why? have they slowed up on development?) I was just going to re-post it. When is Revolution going to { 1. Show some other features promised for On-Rev (like stacks and/or

Re: Getting user's time from web revlet?

2010-01-18 Thread stephen barncard
Sadly, ON-REV ENGINE NOTES [ LAST UPDATED 2009-06-02 BY Mark Waddingham ] is the ONLY full reference sheet on ON-Rev. I was just going to re-post it. When is Revolution going to { 1. Show some new features promised for On-Rev? 2. Print some decent, searchable, and fully complete docs on the

Re: Getting user's time from web revlet?

2010-01-18 Thread Sarah Reichelt
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. I can't get $_SERVER[Date] to return anything, although that would be really useful. I have a test page that lists all the

Re: Getting user's time from web revlet?

2010-01-18 Thread Andre Garzia
ARRRGGGH! okay, it is down to this... browsers send the date header to the server, it is mandatory but the date header is not being passed to the $_SERVER variable, which means they are not passing all the headers as they should. they are just passing some of the http headers, they