Javascript is not loading

Posted by Oden on Ask Ubuntu See other posts from Ask Ubuntu or by Oden
Published on 2011-02-16T10:15:55Z Indexed on 2011/02/16 15:33 UTC
Read the original article Hit count: 246

Filed under:
|
|

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?

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about browser