In the web application, some tasks that have been running may be exhausted and not finished. To avoid this kind of restrictions, we will show you how to carry out these tasks reliably and, at the same time give the status of progress to end users so that they know the task is still ongoing. In this article we will show you how to achieve this in phprunner and asprunner.net.
General tasks like this are the batch sending email notifications. The key is to start a process like this from Javascript which sends the next tasks to the server via Ajax.
1. Button on the list page.
First, we will add a new button to the customer list page titled ‘Send Email’. The following code goes to the clientbefore event. Leave the server and client after the event is empty.
2. List page, Beforedisplay event.
In this event we only need to count the number of notes in the customer table and forward it to Javascript. In this way the Javascript code we know how many emails to send.
Change the SQL query to match the structure of your database.
PHP:
C#
3. After the table is initiated by events.
This is where we really run our work.
PHP
C#
Happy coding!
Game Center
Game News
Review Film
Rumus Matematika
Anime Batch
Berita Terkini
Berita Terkini
Berita Terkini
Berita Terkini
review anime