JavaScript loading a page outside of its folder (ajax)

I am trying to load this file which located in another folder outside of its current folder.

More precisely, this file is located in

root/js/search.js


 $(document).ready(function() {
      $("#results").load("../functions/populateResults.php");  //initial page number to load
      $(".pagination").bootpag({
         total: <?php echo $pages; ?>,
         page: 1,
         maxVisible: 5
      }).on("page", function(e, num){
        e.preventDefault();
        window.scrollTo(0, 0);

        $("#results").prepend('<div class="loading-indication"><img src="ajax-loader.gif" /> &nbsp; Please wait... Loading New Courses...</div>');
        $("#results").load("../functions/populateResults.php", {'page':num});
      });

    });

and I am trying to get to load a file located in root/functions/populateResults.php, my attempt have seen above does not seem to work and would kindly appreciate some assistance.

All the best, Jonathan Etienne

Answer:1

Today code is driving me mad again especially the Angular with the Revealing Module Pattern in an Angular service. When I started I saw nothing wrong with it... now apart from not working... I don't ...

Today code is driving me mad again especially the Angular with the Revealing Module Pattern in an Angular service. When I started I saw nothing wrong with it... now apart from not working... I don't ...

  1. revealing module pattern javascript
  2. revealing module pattern design pattern
  3. revealing module pattern es6
  4. revealing module pattern vs class
  5. revealing module pattern typescript
  6. revealing module pattern jquery
  7. revealing module pattern constructor
  8. revealing module pattern
  9. revealing module pattern vs prototype
  10. revealing module pattern inheritance
  11. revealing module pattern parameters
  12. revealing module pattern disadvantages
  13. revealing module pattern prototype
  14. revealing module pattern init
  15. revealing module pattern extend
  16. revealing module pattern global variables
  17. revealing module pattern public variables
  18. revealing module pattern singleton
  19. revealing module pattern dependencies
  20. revealing module pattern namespace

I have a value in km and I wish to convert that to the browser's locale specific unit of measurement (km or miles). I'm using google maps API v3 directionsService, specifically the last example on ...

I have a value in km and I wish to convert that to the browser's locale specific unit of measurement (km or miles). I'm using google maps API v3 directionsService, specifically the last example on ...

  1. browser games
  2. browserstack
  3. browser history
  4. browser definition
  5. browser settings
  6. browser extension
  7. browser market share
  8. browser cache
  9. browserify
  10. browserling
  11. browserquest
  12. browser cookies
  13. browser mmorpg
  14. browser pets
  15. browser vpn
  16. browser update
  17. browser fps games
  18. browser list
  19. browser for roku
  20. browser games 2019

I have a skinned mesh of a 'snake', exported from blender. The snake has bones (like a spine) which I want to animate along a curve (SplineCurve3) I can calculate points along the spline, and the ...

I have a skinned mesh of a 'snake', exported from blender. The snake has bones (like a spine) which I want to animate along a curve (SplineCurve3) I can calculate points along the spline, and the ...

On my website I have a commenting form which tells you how long ago a comment was posted. Below is a code to reload only the span containing the date every 10 seconds, NOT the entire comments div (to ...

On my website I have a commenting form which tells you how long ago a comment was posted. Below is a code to reload only the span containing the date every 10 seconds, NOT the entire comments div (to ...

  1. using jquery ajax in react
  2. using jquery ajax with promise
  3. using jquery ajax to retrieve data from mysql
  4. using jquery ajax to retrieve data from mongodb
  5. using jquery ajax to populate select options
  6. using jquery ajax in django
  7. using jquery ajax
  8. using jquery.ajax to submit a form
  9. using jquery ajax to download a file
  10. using jquery ajax to post data
  11. using jquery ajax call
  12. delete using jquery ajax
  13. jquery and ajax
  14. jquery with ajax example
  15. jquery and ajax tutorial
  16. jquery with ajax cdn
  17. jquery and ajax interview questions
  18. jquery with ajax download
  19. jquery and ajax tutorial pdf
  20. jquery with ajax call example