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

206
Visualizações
Why I have this error with Ajax?

In this website, I want to load my pages with JQuery and Ajax by clicking on a menue point.

The problem is, that I have errors by loading it.
What does the Error "GET 'path to css file'" in the console mean?
(there is some Ajax code by clicking on error)

It seems that the browser doesn't load the whole css file in the content.
I hope that you can help me, because I don't now what could be wrong.

Here is my code:

JQuery/Ajax:

$(document).ready(function(){

 $("menue li > a").click(function(){
   var hash = this.hash.substr(1);

    if(hash){
      console.log(hash);
      $(document.body).load("js/sv_index.php",  {id:hash});
  }
 });
});

PHP

<?php
  $id = $_POST['id'];

  switch($id){
    case ("index"):
        include '../index.php';
        break;

    case("tutorials"):
        include '../php/tutorials.php';
        break;

    case("news"):
        include '../php/news.php';
        break;

    case("terminal"):
        include '../php/terminal.php';
        break;

    case("anmeldung"):
        include '../php/anmeldung.php';
        break;
  }
?>
about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

It probably means that the web page is looking for your CSS file in 'path to CSS file' and doesn't find it there. Are you sure that your CSS link goes to the correct location and that your server is properly configured to serve the static files?

about 4 years ago · Santiago Trujillo Relatório
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