|
|
|
|
|
| | |
|
Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Nested script errors |
From: |
MS |
Date: |
4/5/2001 4:50:44 PM |
IP: |
208.239.179.34 |
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
document.write("<SCRIPT SRC=\"../script.js\"><\/SCRIPT>");
document.write("<SCRIPT SRC=\"../effects.js\"><\/SCRIPT>");
//-->
</SCRIPT>
It is not because of mixing of the scripting language--it is because the SCRIPT TAG goes something like this
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="validation.js">
</SCRIPT>
<SCRIP LANGUAGE="JAVASCRIPT" SRC="whatever.js">
</SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT>
// all the functions
</SCRIPT>
So each <SCRIPT> tag needs to be closed, and *cannot* be nested like this
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="validaiton.js">
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="whatever.js">
</script>
</script>
and this is exactly what your script doing -- but why are you trying to dynamically generate the <SCRIPT> part? You do not know which file to include at the development time?
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|