I use the following to implant a script into random websites: (added by webmasters just before /body )
<script type="text/javascript">
var xHost = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + xHost + "domain/script.js.php?u="+encodeURIComponent(window.location.host)+"' type='text/javascript'%3E%3C/script%3E"));
</script>
It is an extension of the way google analytics works. I have it installed on a specific website in which the html above it is not perfectly formed.
It works great on all browsers besides IE6. On IE6 the script never runs. Unless I run fiddler2 in which case it runs perfectly.
Question: How can I make it run on IE6. Any idea why it behaves well when fiddler is in the way and not so well when fiddler isn't?
Notes: I have no control over the web sites that have already integrated this code. When I copied the website page code to my server and run it from there it did run OK.