Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
I trying to make a popup that only should be visible if a specific cookie doesn't have a value. So far I don't have succes. Can any of you tell me what is wrong?
<xsl:if test="umbraco.library:RequestCookies('deal') = ''"> <xsl:value-of select="umbraco.library:setCookie('deal', '1')"/> <div class="sd-popup-container"> <a href="#"><xsl:value-of select="umbraco.library:GetDictionaryItem('Close')"/></a> <!--Popup content here--> </div></xsl:if>
Thank you
Hi Kasper
Just a guess...
<xsl:if test="string(umbraco.library:RequestCookies('deal')) = ''">
Cheers
Nigel
Hi Nigel,
Thank you for taking your time to help me out.
But I have solved it just now:
<xsl:variable name="cv" select="umbraco.library:RequestCookies('deal')"/><xsl:value-of select="$cv"/> <xsl:if test="$cv != '1'"> <xsl:value-of select="umbraco.library:setCookie('deal', '1')"/> <!--Content here--> </xsl:if>
The trick is to store the cookie value in a variable before asking what it contains.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Only show popup when cookie doesn't have a value
Hi all,
I trying to make a popup that only should be visible if a specific cookie doesn't have a value. So far I don't have succes. Can any of you tell me what is wrong?
Thank you
Hi Kasper
Just a guess...
Cheers
Nigel
Hi Nigel,
Thank you for taking your time to help me out.
But I have solved it just now:
The trick is to store the cookie value in a variable before asking what it contains.
is working on a reply...