Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

361
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda