Hi Guys first time on the forum so please forgive my ignorance.
I’ve put togethere a form with a script that creates a cookie when users select various options. The form is going to appear in a popup (i’m using colorbox jquery for this). I can get the popup form to appear when people visit my target page but what I can’t seem to get right is a script that first checks if my cookie is present, and if it isn’t then fire up my popup.
Here is what i have so far and would greatly appreciate any guidance you can offer me.
window.onload = function(){
if(document.cookie)
{
index = document.cookie.indexOf(Survey);
if (index != -1)
{
$(document).ready(function() {
$.fn.colorbox({href:’survey.htm’, open:true});
});
}
}
}