inserting javascript in xslt not working in safari
I have a page that is pulling in an xml file uisng xslt. I need to add some javascript to it and have managed to get it all working in IE and FF but Safari开发者_如何学Go is a no no. Here is the code I am using:
<SCRIPT LANGUAGE="javascript" DEFER="true">
<xsl:text disable-output-escaping="yes">
<![CDATA[
javascript here
]]>
</xsl:text>
</SCRIPT>
but I can;'t even get an alert in Safari?
Any ideas?
Try these couple of things first.
- See if the code is even being rendered on the page and if it is being rendered correctly i.e no encoding problems, no weird characters etc.
- If it is being rendered, try putting alerts and try catches around that code to see where exactly it is failing.
That will help you narrow down the problem.
精彩评论