Hi
Were setting up a DW site in XML templates to be able to render the pages to flash.
this works out pretty well but sometimes (I dont know exactly when as it seems a bit random) some javascript is generated in the templates which of course breaks the XML and destroys the rendering in flash.
Where and why is it rendered, and how do we disable it?
this is the script tag
<script type="text/javascript"> strLink = "Admin/Public/Stat2.aspx?SessionID=o0w5o045i3e1s055jgyn1vqv" strLink += "&width=" + window.screen.width; strLink += "&height=" + window.screen.height; strLink += "&col=" + window.screen.colorDepth; if((navigator.userAgent.toLowerCase().indexOf('msie 5') > 0 || navigator.userAgent.toLowerCase().indexOf('msie 5.5')> 0 || navigator.userAgent.toLowerCase().indexOf('msie 6')> 0 || navigator.userAgent.toLowerCase().indexOf('msie 7')> 0) && navigator.userAgent.toLowerCase().indexOf('opera')<1){ document.writeln('<HTML xmlns:IE><IE:CLIENTCAPS ID=oClientCaps style="behavior:url(#default#clientCaps)"/></HTML>'); strLink += "&con=" + oClientCaps.connectionType; strLink += "&lan=" + window.navigator.userLanguage; } if((navigator.userAgent.toLowerCase().indexOf('firefox') > 0 || navigator.userAgent.toLowerCase().indexOf('netscape')> 0 || navigator.userAgent.toLowerCase().indexOf('opera')> 0)){ strLink += "&lan=" + window.navigator.language; } document.writeln('<scr'+'ipt language="JavaScript1.2" src="' + strLink + '" type="text/javascript"></scr'+'ipt>');
</script>
- Sune