Jump to content

mywebacc

Members
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mywebacc

  • Rank
    Newbie
  1. mywebacc

    Error of geolocation

    But I click "share my position". I am not quite sure, but I think I do not deny the goelocation requests. Do you have any idea to accept the geolocation requests?
  2. mywebacc

    Error of geolocation

    woo... I try it in my iphone. Upload the script to server first. If I use GPS. It's work. I can check the latitude and longitude. (browser: Safari) I also try it in my tablet. It's work. (browser: unknown and firefox) However, my desktop is not work. (browser:Chrome and firefox) Somebody said desktop can use ip address to estimate latitude and longitude. But it seems to be wrong.
  3. mywebacc

    Error of geolocation

    I uploaded the file onto the server. But the result of firefox is the same. The result of Google Chrome alert "notice- Network location provider at 'https://www.googleapis.com': Returned error code 404"
  4. mywebacc

    Error of geolocation

    I can't use the function of geolocation in my desktop. Browsers are Firefox and Google Chrome. OS is window xp. I click the button to get positon and also click "share position info" The result: Firefox alert "Unknown error acquiring position" Google Chrome alert "Javascript notice: User denied Geolocation" <!doctype html><html> <head> <meta charset="utf-8"> <title>Geolocation test</title> </head> <body> <p>Your latitude:<span id = "latitude">000</span></p> <p>Your longitude:<span id = "longitude">000</span></p> <p><button onClick="getPosition()">click for your position</button></p> <script> function getPosition(){ if(navigator.geolocation){ navigator.geolocation.getCurrentPosition(showPosition, errorMessage); } else{ alert("this browser does not support geolocation"); } } function showPosition(position){ document.getElementById("latitude").innerHTML = position.coords.latitude; document.getElementById("longitude").innerHTML = position.coords.longitude; } function errorMessage(error){ alert(error.message); } </script> </body></html> I am trying to solve the problem by searching Google. I got some information in the following link: https://bugzilla.mozilla.org/show_bug.cgi?id=822967 Some people said that desktop can't use geolocation. Is it right? Any solution?
×