Ajax request to local XML file

Ajax request to local XML file

Hi there,

I'm busy making a project which needs to be ran locally. It has to work on Firefox only.

I've ran into the problem I can't load local XML files from another directory then the html file is located.

When I try loading XML trough an ajax request with the url "content.xml" everything works fine. As soon as I want the XML to be loaded from another folder, e.g. "../../../content.xml" it doesnt enter my success function.

  1. $.ajax({
       
        cache: "false",
        type: "GET",
        url: "../../../content.xml?r=" + Math.random(),
        dataType: "xml",
        success: function(xml) {
       
            // Do stuff
           
        }
       
    });













Is there anyone who can help me making this work?


Greets