stelljohann
MIS
I am a newbie, so hopefully this will be an easy question. I am working on a support site for our organization. I have a simple javascript that will pull the local time from the client system. This, along with other info, is to be dumped into an e-mail using cfmail and sent to our support staff. The script is this:
<script language="javascript">ourDate = new Date();
document.write("Client Local time is " + ourDate.toLocaleString() + ".<br/>");
</script>
The problem is, if I try to put this into a CF variable, it puts the script in as a text string rather than giving me the result. Any thoughts on how I can just put the result into a variable?
Thanks,
STelljohann
<script language="javascript">ourDate = new Date();
document.write("Client Local time is " + ourDate.toLocaleString() + ".<br/>");
</script>
The problem is, if I try to put this into a CF variable, it puts the script in as a text string rather than giving me the result. Any thoughts on how I can just put the result into a variable?
Thanks,
STelljohann