Advanced Layer Popup Support Product Page
Cookie support
Shared 17 years ago
1
likes this idea
17 years ago Nick B posted:
Is there a way already, or could it be added in a future version, to have the layer popup only once based on a cookie?I'm thinking an email subscription form that pops up once.
Replies
Replied 17 years ago
17 years ago Georgi Kralev replied:
Hi Nick,
This is indeed interesting feature, but it could be very easily implemented just by modifying the code generated by Advanced Layer Popup.
For example if your email subscription popup appear onload you could use the following code for check the cookie :
<pre id=code><font face=courier size=2 id=code>
<body <% if Request.Cookies("DzoneEmailSub"
<>"Verified" Then
Response.Write "onload= ""dmxAdvLayerPopup('Email subscription form','_email_sub_form.asp','','','OS_Look','center','center',450,338,0,true,false,true,40,'','',0,false,'','',0,false,'',1,5,true,false,'#FFFFFF');return document.MM_returnValue"""
End if%>
</font id=code></pre id=code>
and upon subscription could be created the cookies. For example:
Response.Cookies ("DzoneEmailSub"
= "Verified"
For these reason I believe that at this point it is not needed the cookies support to be integrated into Advanced Layer Popup.
Best regards,
Georgi Kralev
----------------------------------
Support - www.DMXzone.com
This is indeed interesting feature, but it could be very easily implemented just by modifying the code generated by Advanced Layer Popup.
For example if your email subscription popup appear onload you could use the following code for check the cookie :
<pre id=code><font face=courier size=2 id=code>
<body <% if Request.Cookies("DzoneEmailSub"

Response.Write "onload= ""dmxAdvLayerPopup('Email subscription form','_email_sub_form.asp','','','OS_Look','center','center',450,338,0,true,false,true,40,'','',0,false,'','',0,false,'',1,5,true,false,'#FFFFFF');return document.MM_returnValue"""
End if%>
</font id=code></pre id=code>
and upon subscription could be created the cookies. For example:
Response.Cookies ("DzoneEmailSub"

For these reason I believe that at this point it is not needed the cookies support to be integrated into Advanced Layer Popup.
Best regards,
Georgi Kralev
----------------------------------
Support - www.DMXzone.com
Replied 14 years ago
14 years ago Thomas Harvey replied:
Could someone possibly re-post this script without the happy faces or just a simplified version to not show the pop-up if a particular cookie value exists... Thanks