Hi,
I want to embed some javascript code into the XSLT transformation, which detects the user's browser.
The code i wrote is shown below:
<msxsl:script language="JavaScript" implements-prefix="user">
<![CDATA[
function getBrowser() {
return navigator.appName;
}
]]>
</msxsl:script>
But when the style sheet is used in the transformation, it says that the variable 'navigator' is not declared. but 'navigator' is a key javascript object.
Can somebody explain why this is so?
Best Regards,
suralk