Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Thanked 0 Times in 0 Posts

    Post JS: Redirect user or remember user decision in cookie

    Sorted! (Almost)

    1) Project Details:
    I require a Javascript that operates identically to www.rackspace.com's location detection - if you're from the UK on their US site, it provides a link to their .co.uk domain but also has the option to continue on the "wrong" site and not re-prompt.

    I already have a php script (as part of in ExpressionEngine) that can write out a variable if user is a UK user on US site (or US on UK site), so no need for location detection in script. I need cookie to be written via Javascript.

    Script should show a box in middle of screen, semi-transparent black background (CSS - I can do this if need) with two options: Redirect to UK (or US) site or continue on current site and not show up again until cookie expires or is cleared.
    If they click on the redirect, no need to write cookie, just redirect (they'll be prompted again if they go back on US site).
    If they click on continue, then the cookie is written to remember that and not display option again.

    Script will apply to two domains.

    2) Payment method/ details:
    Payment by Paypal.
    Timeline - 24hours!
    Last edited by JammCow; 01-11-2012 at 04:35 AM.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts