Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2002
    Location
    Washington State
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    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.

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    478
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •