This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Auto Email on an event. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Auto Email on an event." Watch "Auto Email on an event." New topic
Author

Auto Email on an event.

C Vivek
Ranch Hand

Joined: Oct 03, 2004
Posts: 115
Hello Guys,
I would like to create send an autoemail as soon as the date in a table changes to system date.
What tools would I need to achieve this?
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
send an autoemail as soon as the date in a table changes to system date


I don't know what you mean by this, I don't know what you mean by "date in a table changes to system date".

do you mean an html table or a table in a database? In any case, you could just have some kind of function that "listens" for the change in the table, and as soon as it does, you can either just call a .php page and email to someone using the mail() function OR you can use AJAX to do this with out a page refresh...

so basically you need AJAX and php or some other server script.
(well technically you don't need ajax).

most components in html have an "onchange" event handler. but if you want to catch a change in the database, thats a different story. you would have to have some script to keep checking that table for an update, I would think anyways.

Justin Fox


You down with OOP? Yeah you know me!
 
 
subject: Auto Email on an event.