How interesting! Late this afternoon I "played" around your initial js code
for tz,
I attempted to send this js tz value to a form hidden field, then, have another
js function to auto submit the form, then, have cf get its value, within the
same template, tried it for about 15/20 minutes to no avail. I switched to sql
to solve the problem. Thanks though.
>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
>>>>you *cannot* get the client's tz via js.
>>
>>Really? I just did.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:299554
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4