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
Im trying to determine if a document property called "linktoasp" contains a specific value if it does it needs to use an iframe with a different css class. Any ideas why this isnt working???
<xsl:choose>
<xsl:when test="string-length($currentPage/data[@alias='linkToASP']) > 0">
<div style="text-align:center; border:none;">
<iframe src ="{$currentPage/data[@alias='linkToASP']}" scrolling="no" class="IframeStyle" frameBorder="0">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
</xsl:when>
<xsl:when test="string($currentPage/data[@alias='linkToASP']) = 'http://blazes-old.sass.local/fire-place.asp'">
<iframe src ="{$currentPage/data[@alias='linkToASP']}" scrolling="no" class="IframeStyleSpecialOffers" frameBorder="0">
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
Hi,
maybe you should yust switch statements since the second case is also true for the first one... Try it this way:
Cheers, Toby
thanks toby!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
if property equals this
Im trying to determine if a document property called "linktoasp" contains a specific value if it does it needs to use an iframe with a different css class. Any ideas why this isnt working???
<xsl:choose>
<xsl:when test="string-length($currentPage/data[@alias='linkToASP']) > 0">
<div style="text-align:center; border:none;">
<iframe src ="{$currentPage/data[@alias='linkToASP']}" scrolling="no" class="IframeStyle" frameBorder="0">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
</xsl:when>
<xsl:when test="string($currentPage/data[@alias='linkToASP']) = 'http://blazes-old.sass.local/fire-place.asp'">
<div style="text-align:center; border:none;">
<iframe src ="{$currentPage/data[@alias='linkToASP']}" scrolling="no" class="IframeStyleSpecialOffers" frameBorder="0">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
Hi,
maybe you should yust switch statements since the second case is also true for the first one... Try it this way:
<xsl:when test="string($currentPage/data[@alias='linkToASP']) = 'http://blazes-old.sass.local/fire-place.asp'">
<div style="text-align:center; border:none;">
<iframe src ="{$currentPage/data[@alias='linkToASP']}" scrolling="no" class="IframeStyleSpecialOffers" frameBorder="0">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
</xsl:when>
<xsl:when test="string-length($currentPage/data[@alias='linkToASP']) > 0">
<div style="text-align:center; border:none;">
<iframe src ="{$currentPage/data[@alias='linkToASP']}" scrolling="no" class="IframeStyle" frameBorder="0">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
</xsl:when>
Cheers, Toby
thanks toby!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.