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

208
Vistas
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;
  }
?>
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

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?

over 4 years ago · Santiago Trujillo Denunciar
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