I am trying to include a Javascript page using Javascript, but it doesn’t seem to work.
[CODE]
<head>
<script type=”text/javascript” language=”Javascript”>
….
..
pageToInclude = 1; //for example purposes. It’s a range of 1-39.
output = “<script type=’text/javascript’ language=’Javascript’ src='”;
output += pageToInclude;
output += “.js’></script>”;
document.write(output);
</script>
<title>………….</title>
…..
…
..
the code in 1.js is:
[CODE]
imageList=’A Bunch of <img> Links.’;
What I’m trying to do is to import the imageList variable into my main document. But then, the </script> tag in the output var seems to conflict with the <script> tag in my main document. So how do I import the imageList variable into my main document? I’m so desperate, i tried SSI, but I’m not that good at it so I’m going to use Javascript anyway.