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

    Light Box that won't disappear unless the visitor does CPA offers?

    Im trying to figure out how to create a light box that doesn't close to reveal the content on the website, unless the user fully completes atleast 2-3 CPA(Cost Per Action) offers that will pop up in the lightbox? i know how to make a lightbox with a plugin from wordpress, but I just don't know how to make it so it'll close when it figures out the user has completed the surveys/offers.
    Kind of like this but maybe smaller to show there is content/download link behind it, http://sharecash.org/download.php?file=1595911

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    You can't force your visitors to do anything using JavaScript - they can always either turn off your script or override it with their own.

    There is no guarantee that a lightbox will ever open to start with but if you were to open one without any controls to close it your visitors would still be able to disable JavaScript for the page and then refresh the page in order to access the main content behind the lightbox without having to interact with it at all.

    If you want to force people to complete something before being able to access something then you need to make it two separate pages linked together with a server side script that only permits access to the second page when sufficient information is passed from the first page.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by felgall View Post
    You can't force your visitors to do anything using JavaScript - they can always either turn off your script or override it with their own.

    There is no guarantee that a lightbox will ever open to start with but if you were to open one without any controls to close it your visitors would still be able to disable JavaScript for the page and then refresh the page in order to access the main content behind the lightbox without having to interact with it at all.

    If you want to force people to complete something before being able to access something then you need to make it two separate pages linked together with a server side script that only permits access to the second page when sufficient information is passed from the first page.
    Oh ok. But how will my website know they have fully completed the surveys/offer? Also, what kind of language would I be using if I did this?


  •  

    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
    •