Error when referencing a javascript via the <LINK> tag in combination with .NET Applet (ActiveX)
When embedding a JavaScript file with the below code in combination with .NET Applets, strange things might happen.
<link href="../script/myJavaScript.js" type="text/javascript">
If you run your page, you will receive the following message:
Details:
When looking in eventviewer you can see the following:
Faulting application iexplore.exe, version 7.0.5730.11, faulting module msvcr80.dll, version 8.0.50727.762, fault address 0x00014904.
To solve this problem, you need to include your JavaScript with a SCRIPT tag like this:
<script src="../script/myJavaScript.js" type="text/javascript"></script>
NOTE: Close the script tag explicitly since otherwise the page stops rendering at the end of the script line.
0 comments:
Post a Comment