www.webdeveloper.com
Results 1 to 2 of 2

Thread: Reverse Geolocation - Wired / Wireless Question

  1. #1
    Join Date
    Aug 2007
    Posts
    94

    Reverse Geolocation - Wired / Wireless Question

    Hi

    OK, I am working on my first HTML5 geolocation project (reverse to be exact). Nothing major, just a simple form to display the users location on screen.

    I have used two tutorials to base my work on:

    http://maxheapsize.com/static/html5geolocationdemo.html
    http://www.netmagazine.com/tutorials...l5-geolocation

    Now using both sites, I have created two local working examples which is great, however the issue I am having is that they only work when I am connected to the internet using WIFI. If I switch off WIFI on my desktop and use a network cable (to the same router) the examples fail to run.

    Am I misunderstanding how geolocation works?
    Does a user have to be connected to a WIFI network for it to work???

    I also tried connecting to the first site above via 3G on my phone and it also fails to work.

    Any advice would be greatly appreciated!!

    kbc1

  2. #2
    Join Date
    Mar 2011
    Posts
    1,145
    HTML5's geolocation depends on either an Internet connection in order to obtain an IP address for the user which can be (roughly) translated into a location, or the user's actual location determined by an on-board GPS device. If you disconnect your desktop or laptop from the Internet, there's rarely any GPS support, so no location data is available.
    Rick Trethewey
    Rainbo Design

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles