Baralis
06-15-2015, 06:48 PM
1) Script Title: Local Time Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/localtime.htm
Greetings,
I am attempting to build a webpage that lists the members of a gaming guild and their current time to better help members get in touch with those with similar schedules. I am doing this by creating a table with each members name, followed by their time zone, and finally their local live time. I am new to javascript so I was looking around the web for scripts that I could incorporate into my webpage to accomplish this. "Local Time script" seemed to fit what I needed perfectly however I cannot get it to function.
I created a generic test page on my virtual test server. I copied and pasted step 1 into the head section. I then pasted
<span id="timecontainer"></span> into my table which is in the body section and at the end of my body section I put
<script type="text/javascript">
new showLocalTime("timecontainer", "server-php", 0, "short")
</script> however it only gives me readout of NaN:NaN:NaN AM (undefined).
Am I missing some configuration or is it something else?
Here are environment details:
Windows Server 2008 R2 in Virtualbox
IIS 7
Php v5.3.28
Viewing with Firefox 38.0.5
Any pointers would be appreciated, thanks!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/localtime.htm
Greetings,
I am attempting to build a webpage that lists the members of a gaming guild and their current time to better help members get in touch with those with similar schedules. I am doing this by creating a table with each members name, followed by their time zone, and finally their local live time. I am new to javascript so I was looking around the web for scripts that I could incorporate into my webpage to accomplish this. "Local Time script" seemed to fit what I needed perfectly however I cannot get it to function.
I created a generic test page on my virtual test server. I copied and pasted step 1 into the head section. I then pasted
<span id="timecontainer"></span> into my table which is in the body section and at the end of my body section I put
<script type="text/javascript">
new showLocalTime("timecontainer", "server-php", 0, "short")
</script> however it only gives me readout of NaN:NaN:NaN AM (undefined).
Am I missing some configuration or is it something else?
Here are environment details:
Windows Server 2008 R2 in Virtualbox
IIS 7
Php v5.3.28
Viewing with Firefox 38.0.5
Any pointers would be appreciated, thanks!