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
Related Post
- July 18, 2026
- by anak
- 0
- 5:31 pm
Learn HTML, CSS and JS during live lessons – Anak
Join the next live broadcast and use your time at home to improve and develop…- March 20, 2023
- by anak
- 0
- 4:03 pm