⛔★ Send and email when a page loads a certain div or text on page? |
⛔★ Send and email when a page loads a certain div or text on page? |
Samm |
Apr 25 2018, 08:40 PM
Post
#1
|
Group: Members Posts: 6 Joined: 29-November 16 Member No.: 24,946 |
I'm trying to make a page send me an email when this DIV below become 100% Complete. So when I'm not home it alerts me the process has finished. Is this even possible?
<div class="progress" title="Printing Progress"> <div class="progress-bar active" id="pgs" role="progressbar" style="width: 59%;">59% Complete</div> </div> |
Christian J |
Apr 26 2018, 06:22 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,660 Joined: 10-August 06 Member No.: 7 |
You need a server-side script (like PHP) to send email, but I'm not sure what you mean with DIV becoming 100% complete?
|
CharlesEF |
Apr 26 2018, 01:39 PM
Post
#3
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Seems you want to send the email when a print job is done? Is that correct? How is the job printed? I'm not sure you can do that with HTML and Javasript (for filling the progress bar). Maybe you can use the 'onafterprint' event to make an AJAX call to the server to send the email.
|
Lo-Fi Version | Time is now: 26th April 2024 - 07:49 PM |