Jump to content

Search the Community

Showing results for tags 'Geolocation'.

The search index is currently processing. Current results may not be complete.
  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 7 results

  1. Hello frns, i learnt how to get the gps coordinates from w3school tutorials but a small question how to alter the user if he blocks the gps access request through code <script> var x = document.getElementById("gpsloc"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition, showError); } else { x.value = "Geolocation is not supported by this device."; } } function showPosition(position) { x.value = position.coords.latitude + "," + position.coords.longitude; } function showError(error) { switch(error.
  2. My weather function works when I enter the coordinates myself. I'm trying to use a get location function to find and enter them in but it's not working. Please help. //////////////////////////////////////////////////////////////////////////////////////////////// var x = document.getElementById("demo"); function showLocation(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; x.innerHTML = latitude + "," + longitude; } function errorHandler(err) { if(err.code === 1) { alert("Error:
  3. Hi, So it seems that since the Chrome updated to version 50 They have removed HTML 5 Geo location on HTTP due to security. Now they do however say that it shall all work fine using a localhost for testing as it is being seen as a secure host yet it seems this does not work using a virtual host. If i do a test on "test.local" i will get the same deprecation messages as on a HTTP server but when i change it to "localhost" and run it again it all seems fine. Does anyone know a workaround to still be able to use Geo location using a virtual host or am i now stuck using localhost? Thanks
  4. The geolocation code gives an error Location information is unavailable. Here is the link to the code http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation_error I don't know why the error is coming. Please help me out I am heavily stuck at this point..
  5. Hi,I am building a classifieds WordPress website and I would like to know does there exist any plugin or method that allow posts to be shown based on the country/region/city of the visitor (ip based listing)? There should be an option to add the location of the post somehow in the admin panel so that the plugin can use the information and show the nearest posts. I ve been shown these two links but i dont know how to do it: http://html5demos.com/geo, http://www.w3schools.com/html/html5_geolocation.asp Thanks
  6. 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>
  7. I am using chrome. why the geolocation wont showing getLocation i checked on my advance setting there is no necessarily checkbox "Send a "Do Not Track" request with your browsing traffic" I am not sure what excalty the file will go through from the document.getElementById("demo"). I checked at http://www.w3schools.com/html/html5_geolocation.asp it does not help me please help me to success what did i wrong anyone who have experienced this problem before thanks! btw, I am using IDE note++ here the code is <!DOCTYPE html> <html> <body> <p>
×
×
  • Create New...