Passing a Macro Parameter Into a javascript string
So, I'd like to pass a macro parameter into a javascript thing to allow and end user to insert a Flickr badge based on the set id. I think I'm doing something wrong with escaping the characters but I can't figure out what...I know the parameter is being passed from the macro because it renders when I leave it outside of the CDATA part
Passing a Macro Parameter Into a javascript string
So, I'd like to pass a macro parameter into a javascript thing to allow and end user to insert a Flickr badge based on the set id. I think I'm doing something wrong with escaping the characters but I can't figure out what...I know the parameter is being passed from the macro because it renders when I leave it outside of the CDATA part
here's the code I have:
Hi Amir,
Try this:
<xsl:template match="/"> <div class="flickr_badge_uber_wrapper"> <script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?show_name=1&count=10&display=latest&size=s&layout=x&source=user_set&user=43031198%40N02&set={/macro/setid}&context=in%2Fset-{/macro/setid}%2F"> <xsl:comment>Prevent self-closing...</xsl:comment> </script> </div> </xsl:template>/Chriztian
Yes! Perfect, thank you Chriztian!
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.