开发者

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.

  1. 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.
  2. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜