Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

jacob weber
jacob weber
20,743 Points

Mobile Location Prompt

I am not sure if this is the right place for this or not... but worth a shot. I am working on a mobile product locator and a prompt for using the location on your mobile phone (we've all seen 'em). I can get the prompt to load and use the location, but anyone know how i save that variable out and make my search function search off of that? Does that make any sense what I am asking...or am I in the wrong spot entirely. HA. Cheers!

1 Answer

James Barnett
James Barnett
39,199 Points

HTML5 now supports geolocation & local storage. So you should be able to make a reduced test case using something like codepen so we can get a better idea of what you are trying to do.