Hi I have a problem which is caused by Norton Internet Security inserting the "symerror" function into all webpages. If you are not familiar with this function it basically will insert the following into a web page:
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script>
The problem I have is that my HTML page needs to call an externally loaded javascript file. Tgus in the HTML file I have <Script language="javascript" src="theJSfile."></script>. "theJSfile" is formated like this:
document.write ('<SCRIPT language="JavaScript" src="http://www.webpage.com/..."></SCRIPT>')
The problem arises because Norton Internet Security sticks its little symerror function just above the first <script language="javascript"> reference it finds in the document. This happens to be in the middle of the 'document.write' statement.
The net result of this is you end up with the following which is supposed to be Javascript:
document.write ('
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script>
<SCRIPT language="JavaScript"
src="http://www.blah.js"></SCRIPT>')
Note that now the document.write command is broken by a carriage return.
Is there any way that I can make the document.write function not die at the carriage return?
I hope this makes sense!
Thanks.