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 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Distance to an Object

    Ok, I have an assignment in a class and I have no idea how to do it. The assignment says this:
    Your teacher has asked you to write a HTML document that has embedded JavaScrip within it. The task is to produce a menu of possible location within your country to which you would like to travel. The menu must consist of a minimum of 6 locations. The user of this document will be asked to enter the menu item number. The script will produce a description of the location and the distance from your present location. Below is an example of what the users will see on their screen.
    I have most of it finished now, but I can't figure out how to get distance to an object from your current location, because the location changes with the computer. Do any of you know how or should I just take a cut in points...

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Posts
    679
    Thanks
    0
    Thanked 16 Times in 15 Posts
    I think you are over thinking this. The distance would be from your present location or city, to the location you are traveling to in your country.
    I don't think the instructor is looking for a GPS interface.
    Last edited by rwedge; 04-30-2007 at 11:06 PM.


  •  

    Posting Permissions

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