View Full Version : Getting an ASP Value from a website...

09-12-2005, 12:14 AM
What I am trying to acomplish is getting a value from a website that I can use on any other website. The value is TIME. I have a ASP script that outputs the LOCAL TIME for my city and I am wondering if there is a way to like reguest the value using javascript or something. I've seen it done mainly with Stat Counter websites. You just add a javascript script and it sends the counted hit to the website and gives you an acurate count back. Any ideas or suggestions would greatly be appreciated. Thanks.


09-12-2005, 12:09 PM
Can't you just get the local time on the server and work out the difference? Then you can just use the server time each time, and add/subtract x hours from it.

09-13-2005, 04:09 AM
You could serve up the time from an ASP page using XML, then request the XML from any client page that can do web requests. You might also search for XML time feeds from time related agencies?

09-14-2005, 03:39 AM
And hopefully this might give you some ideas:

Classic ASP Design Tips - Time Zones