Hi,
I am trying to get a Javascript working in an XSL document and i can't seem to make it work for some reason.
I have placed the following code within the head of my document.
<msxsl:script language="JScript" implements-prefix="user">
<![CDATA[
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=250,scrollbars=yes');
return false;
} ]]>
</msxsl:script>
and am using the following code to call the javascript.
<a href="tenancyref.htm"
onClick="return popup(this, 'Tenancy Ref')"><img src="question-mark-icon.gif" width="20" height="20" border="0"> </a>
the doc deceleration is as follows(if it is any use)
<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">
Any help would be great fully appreciated. I am not used to xsl at all, which probably means its something simple i haven't grasped.
dave