Click to See Complete Forum and Search --> : about .js
kanneko
06-24-2003, 02:51 AM
hi there^^
I've a question about js files:
I tried and use a js file for a script. the code and the file name is ok, but when I tried it offline it didn't work. Is that because I've to use it online? Or something else?
You have to point it directly to the file like this :
<script language="JavaScript" src="folder/.../file.js"></script>
don t point it to the url...
<script language="JavaScript" src="http://www.yoursite.com/....."></script>
thats why it does not work on your pc...
cheers
asch
:D
kanneko
06-24-2003, 02:13 PM
I pointed it on the file directory! Well, they were in the same dir so I only put the file name and the extension........however I didn't use urls .... :confused:
havik
06-24-2003, 05:09 PM
if your script tag is referencing a script that is found online (on your web server), then offline your script won't work because it can't "get at" the script code.
If you want it to work offline, then I suggest you save your js file on your computer and reference that file when offline.
Havik
kanneko
06-26-2003, 04:22 PM
I know! I have all the things on my hard disk! either the js file and the html page!!!! And it doesn't run! @.@