onClick javascript in XSLT causing error (highslide swf video)
Hi all,
I am running an Umbraco V4 website and I am trying to use highslide (highslide.com) to display a pop-up swf flash file using XSLT. Basically I have a Videos page that is going to have child nodes (videos) which have a media picker document property that is a swf file. I want the Videos page to list all the child pages and when you click on the link the video pops up and plays. I have the following code but I am getting an XLST error when trying to save it and I assume it is because I am putting javascript code in an XSLT file. Does anyone know what I need to do to get around this issue? Thanks in advance for any help offered. The XSLT I currently have is as follows:
onClick javascript in XSLT causing error (highslide swf video)
Hi all,
I am running an Umbraco V4 website and I am trying to use highslide (highslide.com) to display a pop-up swf flash file using XSLT. Basically I have a Videos page that is going to have child nodes (videos) which have a media picker document property that is a swf file. I want the Videos page to list all the child pages and when you click on the link the video pops up and plays. I have the following code but I am getting an XLST error when trying to save it and I assume it is because I am putting javascript code in an XSLT file. Does anyone know what I need to do to get around this issue? Thanks in advance for any help offered. The XSLT I currently have is as follows:
The XSLT error I get when I try and save this is:
You could try something like
or using a cdata block instead of the comment.
Dan
Excellent, thanks Dan that worked but had to remove the <xsl:comment> part because it was causing an XSLT error on the page. I love this forum!
Heh no probs, now if only I had time to test snippets before posting them!
is working on a reply...