Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-12-2005, 12:14 AM   PM User | #1
isaaclloyd
New Coder

 
Join Date: Dec 2002
Location: Washington State
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
isaaclloyd is an unknown quantity at this point
Question Getting an ASP Value from a website...

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.


~Isaac~
__________________
~ Isaac Lloyd ~
Website Design & Development
http://www.IsaacLloyd.com
isaaclloyd is offline   Reply With Quote
Old 09-12-2005, 12:09 PM   PM User | #2
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
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.
Spudhead is offline   Reply With Quote
Old 09-13-2005, 04:09 AM   PM User | #3
rrhodes
New Coder

 
Join Date: Aug 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
rrhodes is an unknown quantity at this point
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?
__________________
Robert
Gee! Web Tools
Web Content Management / Internet Marketing modules including:
Page Editor - Calendar Manager - News Editor - Contact Organizer - Mail Wizard
rrhodes is offline   Reply With Quote
Old 09-14-2005, 03:39 AM   PM User | #4
Bullschmidt
Regular Coder

 
Join Date: Aug 2002
Location: USA
Posts: 478
Thanks: 0
Thanked 2 Times in 2 Posts
Bullschmidt is an unknown quantity at this point
And hopefully this might give you some ideas:

Classic ASP Design Tips - Time Zones
http://www.bullschmidt.com/devtip-timezones.asp
__________________
J. Paul Schmidt
www.Bullschmidt.com - Freelance Web and Database Developer
www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips
Bullschmidt is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:05 AM.


Advertisement
Log in to turn off these ads.