php - How can I get this relative path working in javascript? -


I have such a folder structure

  • Too many folders
      < Li> Another subfolder
      • _ << li>

        In the StatisticsWrapper.html < / Code> I am using jQuery's .get) function to get some external data that should be done using getStatisticsTable.php , but when I Use relative path: " ../_ included / getStatisticsTable.php "This does not work.

        My guess was that it is not working because the file StatisticsWrapper.html is being included in another file in a lower file, so I found that path relative to that folder But it is not working

        Where should I search for getStatisticsTable.php ? Try searching for your location using

        document.location.href

Comments