This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function saveForm(fname, lname, email) { | |
| //Check form fields | |
| if(!fname){ | |
| alert('First Name is required'); | |
| }else if(!lname){ | |
| alert('Last Name is required'); | |
| }else if(!email){ | |
| alert('Email Address is required'); | |
| }else{ | |
| //Save form inputs to our Array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function saveForm(fname, lname, email) { | |
| //Check form fields | |
| if(!fname){ | |
| alert('First Name is required'); | |
| }else if(!lname){ | |
| alert('Last Name is required'); | |
| }else if(!email){ | |
| alert('Email Address is required'); | |
| }else{ | |
| //Check for duplicate records then save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function saveForm(fname, lname, email) { | |
| //Check form fields | |
| if(!fname){ | |
| alert('First Name is required'); | |
| }else if(!lname){ | |
| alert('Last Name is required'); | |
| }else if(!email){ | |
| alert('Email Address is required'); | |
| }else{ | |
| //Check for duplicate records then save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function saveForm(fname, lname, email) { | |
| //Check form fields | |
| if(!fname){ | |
| alert('First Name is required'); | |
| }else if(!lname){ | |
| alert('Last Name is required'); | |
| }else if(!email){ | |
| alert('Email Address is required'); | |
| }else{ | |
| //Check for duplicate records then save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <p> You have Saved <span id="inp_count"> </span> records so far </p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function saveForm(fname, lname, email) { | |
| //Check form fields | |
| if(!fname){ | |
| alert('First Name is required'); | |
| }else if(!lname){ | |
| alert('Last Name is required'); | |
| }else if(!email){ | |
| alert('Email Address is required'); | |
| }else{ | |
| //Check for duplicate records then save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* AJAX FORM SUBMIT */ | |
| $('#form_multi_upload').submit(function (event){ | |
| event.preventDefault(); | |
| var formData = { | |
| fname : fnameArry, | |
| lname : lnameArry, | |
| email : emailArry | |
| }; | |
| $.ajax({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function findNotifDate(date_notified = "2021-11-05 15:00:00") { | |
| /** | |
| * @ findNotifDate : Finds the Date Difference of a Notification | |
| * @ date_notified : The notification date | |
| **/ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function findNotifDate(date_notified = "2021-11-05 15:00:00") { | |
| /** | |
| * @ findNotifDate : Finds the Date Difference of a Notification | |
| * @ date_notified : The notification date | |
| **/ | |
| var date_sent_tmp = new Date(date_notified); | |
| var date_sent = date_sent_tmp.getTime(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function findNotifDate(date_notified = "2021-11-05 15:00:00") { | |
| /** | |
| * @ findNotifDate : Finds the Date Difference of a Notification | |
| * @ date_notified : The notification date | |
| **/ | |
| var date_sent_tmp = new Date(date_notified); | |
| //Check for timestamps | |
| if(date_notified.indexOf('-') != -1){ | |
| var date_sent = date_sent_tmp.getTime(); |