Originally Posted by StealthRT
You were talking about a sub domain so… I assumed you’re having that file on a server. I’d really suggest you use relative paths there or a server/domain-independent absolute path because really, that local file path is or will be causing more trouble than it needs to be.
So, change the path to either blah/mootools.js
(relative path) or /blah/mootools.js
(absolute path without specifying a domain/server) and it should work locally and on a remote server without ever having to change it.
The relative path setting assumes that the JS file is one level below the file calling it (i.e. the /blah
directory and the current file with the script link have to be on the same level/in the same directory). The absolute path setting assumes your file in a /blah
directory in the server/site root.