Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

357
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda