How to Use a Start/Stop Loader on Every AJAX Call

See the original posting on DZone Python


In this article, we’ll learn how to put an AJAX loader for all AJAX calls from all pages which extend from your layout page into our MVC structure. Here, we will create a simple MVC project and call AJAX functions from view. For beginners who are new to AJAX, AJAX is Asynchronous JavaScript and XML, it’s a front-end web technology that calls web-servers asynchronously. It will load your content without loading or leaving your current page.

Recommended Prerequisites

  • Visual Studio 

Step 1

Open Visual Studio and select “File” >> "New". Then, click on Project.