Your code has a couple of problems:
- You should be using src -- not scr.
- The file whatever.js is a static file that gets served directly by the Web server, so it should be stored in the Web tree and you should probably be using an absolute URL to refer to it. For details on this please refer to the sections that refer to static files in the Locating and Addressing Scripts chapter of the FoxWeb documentation.
Here's some sample code:
<script language="JavaScript" src="/jscript/whatever.js"
type="text/javascript"></script> |
FoxWeb Support Team support@foxweb.com email |
Sent by Jeff Grippe on 08/07/2002 08:00:58 AM:
I don't know if this is a side effect of working with FoxWeb or just my own ignorance about how to do this correctly but...
I can't seem to use SRC="whatever.js" to put my javascript code into a separate source file. If I put the functions into the .fwx itself then they function perfectly. If I move them to a file called whatever.js and then put the lines
<SCRIPT LANGUAGE="JavaScript" SCR="whatever.js">
</SCRIPT>
into my fwx file instead, I lose access to my scripts.
I am having similar problems with publiclly available javascript code that I can't seem to get to work because the bulk of the code is located in a .js file.
Is this a side effect of FoxWeb or something that I'm doing incorrectly?
Thanks