Load Content on Page Scroll with jQuery and AJAX

The infinite page scroll you have seen on the social networking sites – Facebook, Twitter, or on e-commerce websites where the new content is automatically loaded when scrolling down to the web page.

For implementing this functionality I am jQuery to detect page scroll when the user reaches the end of the web page then send an AJAX request to load new content.

Load Content on Page Scroll with jQuery and AJAX

Read more

Upload file with AngularJS and PHP

For upload file with AngularJS need to send the file by $http service and with the use of PHP store the requested file to the server and return a response.

In the demonstration, I am creating two examples –

  • In the first, using JavaScript to select a file,
  • And in the second, using a custom directive

Then pass it as data in $http service for upload.

Upload file with AngularJS and PHP

Read more