To get the time information from Javascript into Cf, you would need to run a
javascript that will send the time information as either a url var or a form
var to a page on the server that will save it as a variable.
The 'next' page will have that information available to it, but the page you
just ran will not.
Eg.
Run index.cfm page.
=contains
<script>
var thistime = new Date();
var req;
req = false;
if(window.XMLHttpRequest && !(window.ActiveXObject)) {
try {
req = new XMLHttpRequest();
} catch(e) {
req = false;
}
} else if(window.ActiveXObject) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
req = false;
}
}
}
if(req) {
req.onreadystatechange = processReqChange;
req.open("POST","http://[servername]/[pagename.cfm]", true);
req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
req.send("time=" + thistime);
}
}
</script>
Or something like that.
William
--
William E. Seiter
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
Web Developer / ColdFusion Programmer
http://William.Seiter.com
-----Original Message-----
From: Don L [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 20, 2008 1:46 PM
To: CF-Talk
Subject: Re: The GetTimeZoneInfo() function
>>>you *cannot* get the client's tz via js.
>
>Really? I just did.
I'm interested. William Seiter's js code works fine, but don't know how to
convert js var into CF var (key to this thing). thanks. Don
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299553
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4