100 Web Space

linking external files
Page 1 of 1

Author:  jemp [ Tue Aug 02, 2005 10:48 pm ]
Post subject:  linking external files

I'm trying to link a few external .js files into a page, but can't. If I put the scripts directly into the html document it works. If I try linking the files as such:

<script type="text/javascript" language="javascript" src="file.js"></script>

It doesn't work.

Is this something with the hosting? Or something that I'm doing wrong?

Thanks for the help on this


Author:  vbannore [ Wed Aug 31, 2005 10:44 am ]
Post subject: 


there are a few things you can make sure...

- location of your *.js file. If its in a scripts folder under your main folder at the webserver then your src="foldername/name_of_file.js"

-also make sure whether the <script type="text/javascript" language="javascript" src="file.js"></script> statement is needed in HEAD section or the BODY section of the HTML webpage.

Author:  =cipher= [ Wed Aug 31, 2005 10:23 pm ]
Post subject: 


Did you know that you do not have to make the normal HTML format of a coding page to have the information work properly.

Like you do not need the <html><head></head><body></body></html> ... But I recommend using it. ! :D

Author:  rm249 [ Thu Sep 01, 2005 7:39 pm ]
Post subject: 

Filenames on the 100ws servers are CasE SenSiTIve, meaning that file.js is different then FIle.jS

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group