Is it possible to call a javascript source file for an array, with other functions in the head section?
Problem: i have a very large array (over 300 elements). In my final project, one item we have to have is a javascript source file. Since this array was so huge, would I be able to put it in a source file? It sounds as if I wouldn't be able to, if other javascript commands are supposed to be ignored if there is a call to a source file.
The code is something like:
<head>
<script language="javascript" src="source.js">
function one() {
}
function two() {
}
CPI = new makeArray
function three() {
}
</script>
</head>
Or, do I need to put all of the javascript, functions and array, in a source file, and call the whole thing?
Thank you!!! |