User selects location on homepage load, content is displayed based on selection

Discussion in 'JavaScript' started by sbstrategies, Feb 14, 2011.

  1. #1
    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?
     
    sbstrategies, Feb 14, 2011 IP
  2. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    srisen2, Feb 14, 2011 IP
  3. sbstrategies

    sbstrategies Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    sbstrategies, Feb 14, 2011 IP