New answers tagged

0

I'm thinking Method 3 - Store the location in a cookie: Although I do think the connection information is within the domain of your server I agree that network configuration and DNS is a separate domain from both client and server side of your web app. And as Ewan points out, tying your functionality to this my not be a good idea. What if you tried to deploy ...


2

If the device has GPS and the browser supports the geolocation api you can use that. If not I would use a cookie and have the site ask the user to select the location, either from a dropdown of known locations or enter a postcode etc. Have javascript check the cookie and prompt for location if its missing. Prevent the user from using functionality without ...


Top 50 recent answers are included