Long -lasting process with notifications – Xlinesoft Blog


In a web application, some long -term tasks can end with time and not end. To avoid this type of limitation, we will show you how to execute these tasks reliably and at the same time provide the state of progress to the end user so that they know that the task is still in operation. In this article we will show you how to get it to Phprunner and Asprunner.net.

A common task like this is the sending of notifications by email. The key is to start a process like this JavaScript by sending the following batch of tasks to the server using Ajax.


1. Button on the list page.

First, we will add a new button to the client list page entitled “Send emails”. The following code is addressed to CustomerBefefore Event. Leave the server and client events empty.

2.

In this case, we simply calculate the number of records in the customer table and pass it to JavaScript. In this way, our JavaScript code knows how many emails must be sent.

Modify SQL query to match the database structure.

PHP:

C#

3. After the initialized table.

This is where we really direct our work.

PHP

C#

Happy Coding!



Technology

Berita Olahraga

Lowongan Kerja

Berita Terkini

Berita Terbaru

Berita Teknologi

Seputar Teknologi

Berita Politik

Resep Masakan

Pendidikan

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Bootstrap 5 tutorial
We discuss crucial changes, as well as many others, in our extensive 1.5-hour crash course…