Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

356
Views
How to fix error referencing jquery from nested web page?

I'm getting the error shown below from jquery when I try to used from a web page in a nested directory. How do I prevent this error.

This is what the directory structure looks like. (Using <script src="/fhir-to-omop/site_libs/jquery-1.11.3/jquery.min.js"></script> from the circled index page works)

enter image description here

I've tried referencing jquery using each of these from the circled StartHere.html page:

    <script src="../../../../site_libs/jquery-1.11.3/jquery.min.js"></script>

OR

    <script src="/fhir-to-omop/site_libs/jquery-1.11.3/jquery.min.js"></script>

This is the error I'm getting

enter image description here

jquery.min.js:5          GET https://nachc-cad.github.io/fhir-to-omop/pages/navbar/getting-started/start-here/site_libs/jquery-1.11.3/jquery.min.js?_=1646571234525 404

EDIT: Per the question in the comments: I am loading JQuery twice as shown below.

In the main file:

<html>
    
    <head>
        <!-- favicon link -->
        <link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico">
        <!-- include lib code -->
        <script src="../../../../site_libs/jquery-1.11.3/jquery.min.js"></script>
        <div id="headerInclude"></div>
        <script>$("#headerInclude").load("/fhir-to-omop/header.html");</script>
    </head>

    <body>
        <div class="container-fluid main-container">

            <!-- navbar -->
            <div id="navbarInclude"></div>
            <script>$("#navbarInclude").load("/fhir-to-omop/navbar.html");</script>
        ...
        </div>
    </body>
</html>

And then this exists at the top of the loaded navbar.html:

<!-- navbar -->
<head>
    <!-- include lib code -->
    <script src="site_libs/jquery-1.11.3/jquery.min.js"></script>
</head>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!