Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-23-2012, 07:59 AM   PM User | #1
hustler2k
New to the CF scene

 
Join Date: Jan 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
hustler2k is an unknown quantity at this point
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
hustler2k is offline   Reply With Quote
Old 01-23-2012, 08:38 AM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,455
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
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/
felgall is offline   Reply With Quote
Old 01-23-2012, 09:23 PM   PM User | #3
hustler2k
New to the CF scene

 
Join Date: Jan 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
hustler2k is an unknown quantity at this point
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?
hustler2k is offline   Reply With Quote
Reply

Bookmarks

Tags
cpa, javascript, lightbox

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:27 PM.


Advertisement
Log in to turn off these ads.