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

205
Views
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 answers
Answer question

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 Report
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!