Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ ⛔★ Send and email when a page loads a certain div or text on page?

Posted by: Samm Apr 25 2018, 08:40 PM

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>

Posted by: Christian J Apr 26 2018, 06:22 AM

You need a server-side script (like PHP) to send email, but I'm not sure what you mean with DIV becoming 100% complete?

Posted by: CharlesEF Apr 26 2018, 01:39 PM

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.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)