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 <[email protected]> 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 have a javascript snippet they like to use to get the user's date and
time? thanks.

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:

function showTimeStamp() {
          // show the current date & time in the divider bar
                var date = new Date();
                var m = date.getMinutes();
                var s = date.getSeconds();
                // add a zero in front of numbers < 10
                if (m < 10) { m = "0" + m; }
                if (s < 10) { s = "0" + s; }

                // format into "d/m/yyyy        h:mm:ss"
                var currentDate =       date.getDate() + "/" +
                                                (date.getMonth() + 1) + "/" +
                                                date.getFullYear() + "        " 
+
                                                date.getHours() + ":" + m + ":" 
+ s;

                $('#timestamp').text("Last step: " + currentDate);
}


The last line uses jQuery to display the time stamp in the tag with
the id "timestamp", but you can also use straight JavaScript:
                document.getElementById("timestamp").innerHTML = currentDate;

Note that I have the date formatted in the English/Australian style
(d/m/y), so swap the segments around if you want American dates.

HTH,
Sarah
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Le 21 janv. 10 à 18:28, Jim Ault a écrit :


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 the traditional way, as long as the user allows cookies. The web page author programs using some code that reads/writes cookies (data to the user hard drive), thus the server tries to use cookies, and the user can set limits or disallow their use. Many corporations disallow.

Jim Ault
Las Vegas


Le 21 janv. 10 à 17:14, Andre Garzia a écrit :

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 custom headers sent by some applications. It will me impossible to implement some
features because the headers are not available

On Thu, Jan 21, 2010 at 1:11 PM, Robert Brenstein <r...@robe





_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


--
Pierre Sahores
mobile : (33) 6 03 95 77 70

www.woooooooords.com
www.sahores-conseil.com






_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to