The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> ⛔★ Send and email when a page loads a certain div or text on page?
Samm
post 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>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Apr 26 2018, 06:22 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post 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.
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 05:36 PM