Hello, I'm trying to come up with a script that displays a modal window as soon as the homepage loads where the user selects a certain location, and has that selected location saved so specific content based on that location choice will display throughout the entire website. The site is based on a PHP CMS, but I figured Javascript would be the easiest route to go. Does anyone have any help or suggestions?
select the variable with JavaScript and call the content with ajax. Did you know you can even auto detect the location with a ip location checking database and use browser language auto detect as well to assist you with this.
Thanks for the help. I was thinking about doing the auto detect, but I prefer to use a manual selection so users have an option to see what other locational content might be.