Hi,
I'm trying to create clickable hyperlinks in an xml preview (via xslt). So the user can click the link in the preview, and it opens a new browser window, like this:
<a>
<xsl:attribute name="href" >
<xsl:value-of select="PreviewURL"/>
</xsl:attribute>
<xsl:attribute name="onclick">
<xsl:text>window.open('</xsl:text>
<xsl:value-of select="PreviewURL"/>
<xsl:text>'); return false;</xsl:text>
</xsl:attribute>
<xsl:value-of select="PreviewURL"/>
</a>
But if I click the generated link, it tries to open it in the preview itself, which is wrong in my case. This used to work in earlier studio (I think I last used it in 2017), but not anymore with 2019SR2 15.2.5.2145.
If I use a div instead of "a", and simply override onclick, it does not do anything either. Neither an alert can be used here.
Is there any change in the preview logic? Are click events completly disabled now? Or is there any workaround this make this work again?
thanks,
Tamas
Translate