I was asked about this so here is the answwer. You have to include this in your original js
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"
SRC="yourOtherFileName.js"></SCRIPT>
All the variables defined in the other file will now be available to the script. All files and partial scripts are loaded in the page, so that it becomes like an include file. It can however cause problems, such as when 2 global variables have the same name.
Wednesday, October 13, 2004
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment