Javascript not filling from neighborhood drive

I'm forgeting the noticeable ...Modifying an index web page on neighborhood disk drive prior to posting it to server. And also the javascript is not filling. This does not function :

file:///Users/meltemi/Sites/mysite/index.html

But, when web page is posted and also offered from Apache after that the javascript functions :

http://www.mysite.com/index.html

Site directory sites equal both in your area and also on remote server. I have actually attempted this with Safari 5.0.5 & Firefox 4.0.

code passages, though I do not think it is a code concern :

<!DOCTYPE html>
<html lang="en">
<!--<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script type="text/javascript"
     src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="galleria/galleria-1.2.3.min.js"></script>

</head>
<body>
<header class="group">
    <div id="header-inner">
        <nav class="group">
                  ...
        </nav>
    </div>
</header>
<hr />
<script type="text/javascript">
    if (Galleria) { $("body").text('Galleria works') }
</script>
</body>
</html>
0
2019-12-02 03:08:26
Source Share
Answers: 1

You require to define the complete course consisting of the drive. The file: component is unneeded.

C :/ Users/meltemi/Sites/ mysite/javascriptfile. js

or *nix :

/ Users/meltemi/Sites/ mysite/javascriptfile. js

Ideally you'll create in an internet setting and afterwards can make use of a course loved one the webroot which will certainly coincide no matter whether the website is neighborhood or on the real-time web server :

/ javascripts/javascriptfile. js

0
2019-12-03 04:54:23
Source