loxie28
03-26-2004, 02:19 PM
A company wrote some javascript to gather some data.
In the beginning of the script it looks like:
<SCRIPT LANGUAGE="Javascript"><!--
gVersion="1.0";
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript1.1"><!--
gVersion="1.1";
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript1.2"><!--
gVersion="1.2";
var RE={"%09":/\t/g, "%20":/ /g, "%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g};
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript1.3"><!--
gVersion="1.3";
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript1.4"><!--
gVersion="1.4";
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript1.5"><!--
gVersion="1.5";
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript"><!--
And then it goes into its function codes. It checks to see which version the person is using and assigns it to a variable.
Ok, question: If I have this code in an external .js file, just removing the <script ...></script> does not work in this case.
I tried adding <script ...><\/script> too. Nope.
I tried taking out all the <script ..... ></script> codes leaving just the variables too just to try that. Nope.
On the main HTML page, do I just use the generic <script language="javascript scr=" ....."></script> ?
In the beginning of the script it looks like:
<SCRIPT LANGUAGE="Javascript"><!--
gVersion="1.0";
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript1.1"><!--
gVersion="1.1";
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript1.2"><!--
gVersion="1.2";
var RE={"%09":/\t/g, "%20":/ /g, "%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g};
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript1.3"><!--
gVersion="1.3";
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript1.4"><!--
gVersion="1.4";
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript1.5"><!--
gVersion="1.5";
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript"><!--
And then it goes into its function codes. It checks to see which version the person is using and assigns it to a variable.
Ok, question: If I have this code in an external .js file, just removing the <script ...></script> does not work in this case.
I tried adding <script ...><\/script> too. Nope.
I tried taking out all the <script ..... ></script> codes leaving just the variables too just to try that. Nope.
On the main HTML page, do I just use the generic <script language="javascript scr=" ....."></script> ?