Javascript is not loading
- by Oden
Hey,
I've got a problem with JavaScript under Ubuntu, that drives me crazy.
I'm using Gedit for my web sites since I'm an Ubuntu user. When I start a new website I create (usually with the gnome terminal) folder structure, and I copy the files I need into them.
The next step is creating an index.html where I build the design and basic JavaScript functionality. JavaScript is stored in a sub-folder of the project and when i try to load one using the tag in the header, my whole page body disappears. If the source contains a script tag with its own body, and its not the first its code wont run.
I've tried to solve the problem by setting chmod to 777 with sudo chmod -R 777 . but nothing changed.
CSS is loading correctly, but JS isn't.
I'm using the newest version of apache, no mod_rewrite stuff, but i get the same problem when I run the html from file (file:///...)
Do anyone know how to solve this problem?